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/CodeGen/MachineBasicBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 462c56265960..f4ef3ee21e3c 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -105,6 +105,6 @@ void MachineBasicBlock::print(std::ostream &OS) const << ", LLVM BB @" << (const void*) LBB << "):\n"; for (const_iterator I = begin(); I != end(); ++I) { OS << "\t"; - I->print(OS, getParent()->getTarget()); + I->print(OS, &getParent()->getTarget()); } } -- cgit v1.2.3