From: Daniel Dunbar Date: Mon, 31 Aug 2009 19:13:56 +0000 (+0000) Subject: Stop printing old asm printing code inline with -experimental-asm-printer (this allow... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d2a0b272fefed1a10d7b1da762f384ea1c351df4;p=oota-llvm.git Stop printing old asm printing code inline with -experimental-asm-printer (this allows diffing and assembling the .s) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80604 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index a9b89e8ad48..60d8238dfac 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -880,15 +880,10 @@ void X86ATTAsmPrinter::printMachineInstruction(const MachineInstr *MI) { TmpInst.setOpcode(X86::POP32r); TmpInst.getOperand(0) = MCOperand::CreateReg(MI->getOperand(0).getReg()); printInstruction(&TmpInst); - O << "OLD: "; - // Call the autogenerated instruction printer routines. - printInstruction(MI); return; } } - O << "NEW: "; - TmpInst.setOpcode(MI->getOpcode()); for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { @@ -930,10 +925,6 @@ void X86ATTAsmPrinter::printMachineInstruction(const MachineInstr *MI) { // FIXME: Convert TmpInst. printInstruction(&TmpInst); - O << "OLD: "; - - // Call the autogenerated instruction printer routines. - printInstruction(MI); } void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {