diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-19 21:53:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-19 21:53:00 +0000 |
commit | 6f99776f6c1d6cc93a62192099a0fd8cc2cc3a0c (patch) | |
tree | d1d52400f8d18e22ae4b97613e17eaf52e9b61f9 /lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | |
parent | 93bb60d3793e6354866e2820a030f3baebb55a38 (diff) |
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 :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp')
-rw-r--r-- | lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index d5e2991ec5..4685c0e2e3 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -1311,7 +1311,7 @@ extern "C" void LLVMInitializeARMAsmPrinter() { //===----------------------------------------------------------------------===// void ARMAsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) { - ARMMCInstLower MCInstLowering(OutContext, Mang); + ARMMCInstLower MCInstLowering(OutContext, *Mang, getFunctionNumber(), *MAI); switch (MI->getOpcode()) { case TargetInstrInfo::DBG_LABEL: case TargetInstrInfo::EH_LABEL: |