From 23dbc8170c91c09bf1c7f3f18d4321e05c500db3 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Fri, 25 Jun 2004 00:13:11 +0000 Subject: Made a fix so that you can print out MachineInstrs that belong to a MachineBasicBlock that is not yet attached to a MachineFunction. This change includes changing the third operand (TargetMachine) to a pointer for the MachineInstr::print function. llvm-svn: 14389 --- llvm/lib/Target/X86/Printer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/X86/Printer.cpp') diff --git a/llvm/lib/Target/X86/Printer.cpp b/llvm/lib/Target/X86/Printer.cpp index 2a9ba83b4ed..cfab9b196db 100644 --- a/llvm/lib/Target/X86/Printer.cpp +++ b/llvm/lib/Target/X86/Printer.cpp @@ -936,7 +936,7 @@ void Printer::printMachineInstruction(const MachineInstr *MI) { return; } default: - O << "\tUNKNOWN FORM:\t\t-"; MI->print(O, TM); break; + O << "\tUNKNOWN FORM:\t\t-"; MI->print(O, &TM); break; } } -- cgit v1.2.3