diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-24 03:44:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-24 03:44:52 +0000 |
commit | 5bf3ce2b7cffb9dcd793ecde117f767e96020664 (patch) | |
tree | 0f0d340579e2724c8a206bea63266bd2c31fb737 /lib/CodeGen/MachineBasicBlock.cpp | |
parent | 0c63e03e04d3982e1913479bba404c3debc9a27e (diff) |
Eliminate an explicit use of the LLVM basic block, using getParent instead,
which simplifies the code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13707 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 eccf389576..64f735c48e 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -97,6 +97,6 @@ void MachineBasicBlock::print(std::ostream &OS) const OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n"; for (const_iterator I = begin(); I != end(); ++I) { OS << "\t"; - I->print(OS, MachineFunction::get(LBB->getParent()).getTarget()); + I->print(OS, getParent()->getTarget()); } } |