summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-03-24 21:04:58 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-03-24 21:04:58 +0000
commitf170f8bff68556e14e3ab3ea51eef07fe90113ca (patch)
treeef6d898bf06543f7d3f1ca3ea631b92b3dbf75aa /llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
parent471f5aa23351b782c252050b4aa50ed9d79003c2 (diff)
downloadbcm5719-llvm-f170f8bff68556e14e3ab3ea51eef07fe90113ca.tar.gz
bcm5719-llvm-f170f8bff68556e14e3ab3ea51eef07fe90113ca.zip
Add asm parsing support w/ testcases for strex/ldrex family of instructions
llvm-svn: 128236
Diffstat (limited to 'llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 82bd678a26b..32206273beb 100644
--- a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -317,6 +317,12 @@ void ARMInstPrinter::printAddrMode6Operand(const MCInst *MI, unsigned OpNum,
O << "]";
}
+void ARMInstPrinter::printAddrMode7Operand(const MCInst *MI, unsigned OpNum,
+ raw_ostream &O) {
+ const MCOperand &MO1 = MI->getOperand(OpNum);
+ O << "[" << getRegisterName(MO1.getReg()) << "]";
+}
+
void ARMInstPrinter::printAddrMode6OffsetOperand(const MCInst *MI,
unsigned OpNum,
raw_ostream &O) {
OpenPOWER on IntegriCloud