aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.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/CodeGen/MachineBasicBlock.cpp
parent521eb8752b2e1ab7318169c10dd7a23acf78664b (diff)
downloadllvm-23dbc8170c91c09bf1c7f3f18d4321e05c500db3.zip
llvm-23dbc8170c91c09bf1c7f3f18d4321e05c500db3.tar.gz
llvm-23dbc8170c91c09bf1c7f3f18d4321e05c500db3.tar.bz2
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/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 462c562..f4ef3ee 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());
}
}