ARM .word data fixups don't need an adjustment.
authorJim Grosbach <grosbach@apple.com>
Tue, 9 Nov 2010 17:36:59 +0000 (17:36 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 9 Nov 2010 17:36:59 +0000 (17:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118586 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmBackend.cpp

index c475d5cfef2f6260190df74ee4154d725c1c74ff..be3c7111665ba87c3e4d32341957630fb98a45ac 100644 (file)
@@ -152,6 +152,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
   default:
     llvm_unreachable("Unknown fixup kind!");
   case FK_Data_4:
+    return Value;
   case ARM::fixup_arm_pcrel_12:
     // ARM PC-relative values are offset by 8.
     return Value - 8;