diff options
author | Owen Anderson <resistor@mac.com> | 2010-12-13 22:51:08 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-12-13 22:51:08 +0000 |
commit | 9a4d42855d2f21239332e69ecb3cfdd1524b9738 (patch) | |
tree | bc3e1b774512cf44c9bb3a029d15281a3e31820c /llvm/lib/Target/ARM/ARMAsmBackend.cpp | |
parent | c4bf5cac9fe8b68b755fc07d6890e443ba594dd3 (diff) | |
download | bcm5719-llvm-9a4d42855d2f21239332e69ecb3cfdd1524b9738.tar.gz bcm5719-llvm-9a4d42855d2f21239332e69ecb3cfdd1524b9738.zip |
Revert r121721, which broke buildbots.
llvm-svn: 121726
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMAsmBackend.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/ARMAsmBackend.cpp index 789bae09bee..cb0c54386ed 100644 --- a/llvm/lib/Target/ARM/ARMAsmBackend.cpp +++ b/llvm/lib/Target/ARM/ARMAsmBackend.cpp @@ -136,25 +136,6 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { // Encode the immediate and shift the opcode into place. return ARM_AM::getSOImmVal(Value) | (opc << 21); } - - case ARM::fixup_t2_adr_pcrel_12: { - Value -= 4; - unsigned opc = 0; - if ((int64_t)Value < 0) { - Value = -Value; - opc = 5; - } - - uint32_t out = (opc << 21); - out |= (Value & 0x800) << 14; - out |= (Value & 0x700) << 4; - out |= (Value & 0x0FF); - - uint64_t swapped = (out & 0xFFFF0000) >> 16; - swapped |= (out & 0x0000FFFF) << 16; - return swapped; - } - case ARM::fixup_arm_branch: // These values don't encode the low two bits since they're always zero. // Offset by 8 just as above. @@ -375,7 +356,6 @@ static unsigned getFixupKindNumBytes(unsigned Kind) { case ARM::fixup_t2_condbranch: case ARM::fixup_t2_uncondbranch: case ARM::fixup_t2_pcrel_10: - case ARM::fixup_t2_adr_pcrel_12: case ARM::fixup_arm_thumb_bl: case ARM::fixup_arm_thumb_blx: return 4; |