summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-12-16 00:50:33 +0000
committerBill Wendling <isanbard@gmail.com>2010-12-16 00:50:33 +0000
commit9613a09e5c999ef116f378c701b5e2be5d417808 (patch)
tree58ff8c4ac1b8f387d40dee06b693fdb4641dffb0 /llvm/lib/Target/ARM/ARMAsmBackend.cpp
parent637813a258bde9c284cc488a0bd0d95b9f4c4b9a (diff)
downloadbcm5719-llvm-9613a09e5c999ef116f378c701b5e2be5d417808.tar.gz
bcm5719-llvm-9613a09e5c999ef116f378c701b5e2be5d417808.zip
Remove fixup_arm_thumb_ldst. The code was never calling the "fixup" stuff for
it. I.e., it was always an immediate value. llvm-svn: 121932
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmBackend.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
index 67f2c710571..e4acd667307 100644
--- a/llvm/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
@@ -237,9 +237,6 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
// 'off by 4' is implicitly handled by the half-word ordering of the
// Thumb encoding, so we only need to adjust by 2 here.
return ((Value - 2) >> 2) & 0xff;
- case ARM::fixup_arm_thumb_ldst:
- // Offset by 4.
- return ((Value - 4) & 0x1f) << 6;
case ARM::fixup_arm_thumb_cb: {
// Offset by 4 and don't encode the lower bit, which is always 0.
uint32_t Binary = (Value - 4) >> 1;
@@ -368,7 +365,6 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
case ARM::fixup_arm_thumb_br:
case ARM::fixup_arm_thumb_cb:
- case ARM::fixup_arm_thumb_ldst:
return 2;
case ARM::fixup_arm_ldst_pcrel_12:
OpenPOWER on IntegriCloud