diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-10-26 22:22:01 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-10-26 22:22:01 +0000 |
commit | a581328ceb4c9db165d79a4dabd6b28db799d70f (patch) | |
tree | 0d78e3ea80da0be3bf543d6a147ea08877d90a5a /lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
parent | 2a1286ed58bd02a5cffefbf25e45d9f6b61249c8 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 99f619cb11..8803b68778 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/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]. |