Eliminate an explicit use of the LLVM basic block, using getParent instead,

which simplifies the code

llvm-svn: 13707
This commit is contained in:
Chris Lattner 2004-05-24 03:44:52 +00:00
parent bcee21b491
commit 18dad6ed52
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
}