diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-06-25 00:13:11 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-06-25 00:13:11 +0000 |
commit | b140762a45d21aaed054f15adaff0fc2274d939d (patch) | |
tree | a68975838c30f8e7ff326503550a907dc17b3f13 /lib/CodeGen/MachineBasicBlock.cpp | |
parent | 32b588039e8db86269edab5bd2b49ba1aebb00b8 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 462c562659..f4ef3ee21e 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/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()); } } |