Fix a bug introduced by my patch yesterday: BL is a 4-byte instructions like BLX...
authorOwen Anderson <resistor@mac.com>
Wed, 23 Mar 2011 21:19:56 +0000 (21:19 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 23 Mar 2011 21:19:56 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128169 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MachObjectWriter.cpp

index f2e91c26719929c8efe0d8b66268150f76d2bf56..105506a113d693fba5710f0fe4fbc363155189cd 100644 (file)
@@ -949,14 +949,13 @@ public:
 
       // Handle Thumb branches.
     case ARM::fixup_arm_thumb_br:
-    case ARM::fixup_arm_thumb_bl:
       RelocType = unsigned(macho::RIT_ARM_ThumbBranch22Bit);
       Log2Size = llvm::Log2_32(2);
       return true;
-
+      
+    case ARM::fixup_arm_thumb_bl:
     case ARM::fixup_arm_thumb_blx:
       RelocType = unsigned(macho::RIT_ARM_ThumbBranch22Bit);
-      // Report as 'long', even though that is not quite accurate.
       Log2Size = llvm::Log2_32(4);
       return true;