diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-14 20:58:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-14 20:58:38 +0000 |
commit | c5afd125574886efd40d08bf8b7f5525e6d98d38 (patch) | |
tree | cb88d7eb9f4a38690b7aee9ce2922bdd3829441e /llvm/lib/Target/ARM/ARMAsmPrinter.cpp | |
parent | 7c4dfc28ce450be58934ec215e0cd22dd7b70262 (diff) | |
download | bcm5719-llvm-c5afd125574886efd40d08bf8b7f5525e6d98d38.tar.gz bcm5719-llvm-c5afd125574886efd40d08bf8b7f5525e6d98d38.zip |
even more simplifications. ARM MCInstLowering is now just
a single function instead of a class. It doesn't need the
complexity that X86 does.
llvm-svn: 119070
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp index 2d5b4c41c4c..cf48d208084 100644 --- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp @@ -19,7 +19,6 @@ #include "ARMConstantPoolValue.h" #include "InstPrinter/ARMInstPrinter.h" #include "ARMMachineFunctionInfo.h" -#include "ARMMCInstLower.h" #include "ARMTargetMachine.h" #include "ARMTargetObjectFile.h" #include "llvm/Analysis/DebugInfo.h" @@ -800,7 +799,6 @@ void ARMAsmPrinter::PrintDebugValueComment(const MachineInstr *MI, } void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) { - ARMMCInstLower MCInstLowering(OutContext, *Mang, *this); switch (MI->getOpcode()) { default: break; case ARM::t2MOVi32imm: assert(0 && "Should be lowered by thumb2it pass"); @@ -931,7 +929,7 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) { case ARM::t2BR_JT: { // Lower and emit the instruction itself, then the jump table following it. MCInst TmpInst; - MCInstLowering.Lower(MI, TmpInst); + LowerToMCInst(MI, TmpInst, *this); OutStreamer.EmitInstruction(TmpInst); EmitJump2Table(MI); return; @@ -942,7 +940,7 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) { case ARM::BR_JTadd: { // Lower and emit the instruction itself, then the jump table following it. MCInst TmpInst; - MCInstLowering.Lower(MI, TmpInst); + LowerToMCInst(MI, TmpInst, *this); OutStreamer.EmitInstruction(TmpInst); EmitJumpTable(MI); return; @@ -1253,7 +1251,7 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) { } MCInst TmpInst; - MCInstLowering.Lower(MI, TmpInst); + LowerToMCInst(MI, TmpInst, *this); OutStreamer.EmitInstruction(TmpInst); } |