]> granicus.if.org Git - llvm/commit
[ARM] Fix handling of mapping symbols when changing sections
authorJohn Brawn <john.brawn@arm.com>
Thu, 20 Apr 2017 10:18:13 +0000 (10:18 +0000)
committerJohn Brawn <john.brawn@arm.com>
Thu, 20 Apr 2017 10:18:13 +0000 (10:18 +0000)
commit4d16adb1878de762b9075b5752072cc681b10420
tree7c400ec682b6949e2c4a1aeaa33c21cbf6fd5fc4
parent82afafa944790108314e8565940ffa992d24146b
[ARM] Fix handling of mapping symbols when changing sections

ChangeSection incorrectly registers LastEMSInfo as belonging to the previous
section, not the current section. This happens to work when changing sections
using .section, as the previous section is set to the current section before
the call to ChangeSection, but not when using .popsection.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300831 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
test/MC/ARM/multi-section-mapping.s