AArch64: use a different means to determine whether to byte swap relocations.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 24 Mar 2015 21:47:03 +0000 (21:47 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 24 Mar 2015 21:47:03 +0000 (21:47 +0000)
commit4b8dfba3a128cb20c75fc7709d8c61a6af6e92a6
tree909091ab8d641bee073cf9acbd8d7ec7679feb60
parentf99b7d05381b12e1929f41505c9a3188531519e3
AArch64: use a different means to determine whether to byte swap relocations.

This code depended on a bug in the FindAssociatedSection function that would
cause it to return the wrong result for certain absolute expressions. Instead,
use EvaluateAsRelocatable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233119 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp