summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-10-30 01:04:51 +0000
committerJim Grosbach <grosbach@apple.com>2012-10-30 01:04:51 +0000
commit4739f2eb190176baccd34cf498027a4fb76dd384 (patch)
treef73705367b5eaae746749f78f059c9aef31a8143 /llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
parenta81175371628fd34b10bfcc03c1c7dbe9a62621a (diff)
downloadbcm5719-llvm-4739f2eb190176baccd34cf498027a4fb76dd384.tar.gz
bcm5719-llvm-4739f2eb190176baccd34cf498027a4fb76dd384.zip
ARM: Better disassembly for pc-relative LDR.
When the operand is a plain immediate rather than a label, print it as [pc, #imm] like we do for the Thumb2 wide encoding variant. rdar://12154503 llvm-svn: 166991
Diffstat (limited to 'llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 7eac5ee5fa2..dcc41d93f5c 100644
--- a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -283,8 +283,8 @@ void ARMInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
}
}
-void ARMInstPrinter::printT2LdrLabelOperand(const MCInst *MI, unsigned OpNum,
- raw_ostream &O) {
+void ARMInstPrinter::printThumbLdrLabelOperand(const MCInst *MI, unsigned OpNum,
+ raw_ostream &O) {
const MCOperand &MO1 = MI->getOperand(OpNum);
if (MO1.isExpr())
O << *MO1.getExpr();
OpenPOWER on IntegriCloud