[Thumb] Set correct initial mapping symbol for big-endian thumb
authorOliver Stannard <oliver.stannard@arm.com>
Mon, 19 Sep 2016 09:21:45 +0000 (09:21 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Mon, 19 Sep 2016 09:21:45 +0000 (09:21 +0000)
commite1f6dc59cefea03e5430e8d080195c58c595db7a
treecd62a2a50649ea2c7038ac56a11410c349455bbb
parenteaee28b5caec0972aa35479fecbe4196528c8fb8
[Thumb] Set correct initial mapping symbol for big-endian thumb

The initial mapping symbol state is set from the triple, but we only checked
for the little-endian thumb triple, so could end up with an ARM mapping symbol
for big-endian thumb.

Differential Revision: https://reviews.llvm.org/D24553

llvm-svn: 281894
llvm/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
llvm/test/MC/ARM/mapping-initial.s [new file with mode: 0644]