summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-19 21:53:00 +0000
committerChris Lattner <sabre@nondot.org>2009-10-19 21:53:00 +0000
commit889a6217fac756640ab75e09d165a356c11c8616 (patch)
treec06b9be38a002d1a1fac13b085b365a6f77fb273 /llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
parent5c704d505c1a3dfe75c0528f6372363e0c41b378 (diff)
downloadbcm5719-llvm-889a6217fac756640ab75e09d165a356c11c8616.tar.gz
bcm5719-llvm-889a6217fac756640ab75e09d165a356c11c8616.zip
add jump tables, constant pools and some trivial global
lowering stuff. We can now compile hello world to: _main: stm , mov r7, sp sub sp, sp, #4 mov r0, #0 str r0, ldr r0, bl _printf ldr r0, mov sp, r7 ldm , Almost looks like arm code :) llvm-svn: 84542
Diffstat (limited to 'llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
index 8393e241284..41be859ce0d 100644
--- a/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
+++ b/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
@@ -16,9 +16,8 @@
#include "ARMAddressingModes.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCAsmInfo.h"
-//#include "llvm/MC/MCExpr.h"
-//#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/FormattedStream.h"
+#include "llvm/MC/MCExpr.h"
+#include "llvm/Support/raw_ostream.h"
#include "ARMGenInstrNames.inc"
using namespace llvm;
@@ -34,7 +33,8 @@ void ARMInstPrinter::printInst(const MCInst *MI) { printInstruction(MI); }
void ARMInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
const char *Modifier) {
- assert((Modifier == 0 || Modifier[0] == 0) && "Cannot print modifiers");
+ // FIXME: TURN ASSERT ON.
+ //assert((Modifier == 0 || Modifier[0] == 0) && "Cannot print modifiers");
const MCOperand &Op = MI->getOperand(OpNo);
if (Op.isReg()) {
@@ -43,9 +43,7 @@ void ARMInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
O << '#' << Op.getImm();
} else {
assert(Op.isExpr() && "unknown operand kind in printOperand");
- assert(0 && "UNIMP");
- //O << '$';
- //Op.getExpr()->print(O, &MAI);
+ Op.getExpr()->print(O, &MAI);
}
}
OpenPOWER on IntegriCloud