Stop printing old asm printing code inline with -experimental-asm-printer (this allows diffing and assembling the .s)

llvm-svn: 80604
This commit is contained in:
Daniel Dunbar 2009-08-31 19:13:56 +00:00
parent a8c6218140
commit 1953d69113

View File

@ -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) {