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 | 18dad6ed525464ae1b2c0bc0558af00ae5d8e814 (patch) | |
tree | af61013436abc1937e9a0fc11a000a909289ea1f /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | bcee21b4912ae793b9e61c03872cceafed846d1d (diff) | |
download | bcm5719-llvm-18dad6ed525464ae1b2c0bc0558af00ae5d8e814.tar.gz bcm5719-llvm-18dad6ed525464ae1b2c0bc0558af00ae5d8e814.zip |
Eliminate an explicit use of the LLVM basic block, using getParent instead,
which simplifies the code
llvm-svn: 13707
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index eccf3895761..64f735c48e6 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/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()); } } |