summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-10-26 22:22:01 +0000
committerJim Grosbach <grosbach@apple.com>2011-10-26 22:22:01 +0000
commit61fdba048fd3d5858c27719a18c3bd79bd4f0ccb (patch)
tree99aaa8387f40190652a7f3d428ff52bee284e287 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parentf5a15529a7d3fc52591e816bdd56748238b4f7fd (diff)
downloadbcm5719-llvm-61fdba048fd3d5858c27719a18c3bd79bd4f0ccb.tar.gz
bcm5719-llvm-61fdba048fd3d5858c27719a18c3bd79bd4f0ccb.zip
Thumb2 ldr pc-relative encoding fixes.
We were parsing label references to the i12 encoding, which isn't right. They need to go to the pci variant instead. More of rdar://10348687 llvm-svn: 143068
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 99f619cb119..8803b687782 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -865,12 +865,6 @@ public:
return Val > -256 && Val < 0;
}
bool isMemUImm12Offset() const {
- // If we have an immediate that's not a constant, treat it as a label
- // reference needing a fixup. If it is a constant, it's something else
- // and we reject it.
- if (Kind == k_Immediate && !isa<MCConstantExpr>(getImm()))
- return true;
-
if (!isMemory() || Memory.OffsetRegNum != 0 || Memory.Alignment != 0)
return false;
// Immediate offset in range [0, 4095].
OpenPOWER on IntegriCloud