summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/Printer.cpp
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-06-25 00:13:11 +0000
committerTanya Lattner <tonic@nondot.org>2004-06-25 00:13:11 +0000
commit23dbc8170c91c09bf1c7f3f18d4321e05c500db3 (patch)
tree97c958f3a4f7910e0899d5bf5886ad8a41a71954 /llvm/lib/Target/X86/Printer.cpp
parent521eb8752b2e1ab7318169c10dd7a23acf78664b (diff)
downloadbcm5719-llvm-23dbc8170c91c09bf1c7f3f18d4321e05c500db3.tar.gz
bcm5719-llvm-23dbc8170c91c09bf1c7f3f18d4321e05c500db3.zip
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
Diffstat (limited to 'llvm/lib/Target/X86/Printer.cpp')
-rw-r--r--llvm/lib/Target/X86/Printer.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}
OpenPOWER on IntegriCloud