aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-09-21 23:53:44 +0000
committerOwen Anderson <resistor@mac.com>2011-09-21 23:53:44 +0000
commit61268701931d747fa95e0be8a368101e7f97b83c (patch)
tree14c88fa8036b1703093e82511f3cf92b298180ee /lib
parente1368729700f1a51ee5cf33431df985e232bcc68 (diff)
downloadexternal_llvm-61268701931d747fa95e0be8a368101e7f97b83c.tar.gz
external_llvm-61268701931d747fa95e0be8a368101e7f97b83c.tar.bz2
external_llvm-61268701931d747fa95e0be8a368101e7f97b83c.zip
Turns out that Thumb2 ADR doesn't need special printing like LDR does. Fix other test failures I caused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMInstrThumb2.td1
-rw-r--r--lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp12
-rw-r--r--lib/Target/ARM/InstPrinter/ARMInstPrinter.h1
3 files changed, 0 insertions, 14 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td
index 80ad5b45ad..c83984ba9f 100644
--- a/lib/Target/ARM/ARMInstrThumb2.td
+++ b/lib/Target/ARM/ARMInstrThumb2.td
@@ -121,7 +121,6 @@ def t2ldrlabel : Operand<i32> {
// ADR instruction labels.
def t2adrlabel : Operand<i32> {
let EncoderMethod = "getT2AdrLabelOpValue";
- let PrintMethod = "printT2AdrLabelOperand";
}
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 251b447886..2935efe5e7 100644
--- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -222,18 +222,6 @@ void ARMInstPrinter::printT2LdrLabelOperand(const MCInst *MI, unsigned OpNum,
llvm_unreachable("Unknown LDR label operand?");
}
-void ARMInstPrinter::printT2AdrLabelOperand(const MCInst *MI, unsigned OpNum,
- raw_ostream &O) {
- const MCOperand &MO1 = MI->getOperand(OpNum);
- if (MO1.isExpr())
- O << *MO1.getExpr();
- else if (MO1.isImm())
- O << "[pc, #" << MO1.getImm() << "]";
- else
- llvm_unreachable("Unknown LDR label operand?");
-}
-
-
// so_reg is a 4-operand unit corresponding to register forms of the A5.1
// "Addressing Mode 1 - Data-processing operands" forms. This includes:
// REG 0 0 - e.g. R5
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.h b/lib/Target/ARM/InstPrinter/ARMInstPrinter.h
index bc1394e3f9..67484cc711 100644
--- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.h
+++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.h
@@ -128,7 +128,6 @@ public:
void printPCLabel(const MCInst *MI, unsigned OpNum, raw_ostream &O);
void printT2LdrLabelOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O);
- void printT2AdrLabelOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O);
};
} // end namespace llvm