Make debugging dumps w/ multiple MachineBBs for a given LLVM BB readable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke
2004-06-17 22:26:53 +00:00
parent ccd9796a46
commit 988b7ba5ba
2 changed files with 6 additions and 5 deletions

View File

@ -101,7 +101,8 @@ void MachineBasicBlock::print(std::ostream &OS) const
}
const BasicBlock *LBB = getBasicBlock();
if(LBB)
OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
OS << "\n" << LBB->getName() << " (" << (const void*)this
<< ", LLVM BB @" << (const void*) LBB << "):\n";
for (const_iterator I = begin(); I != end(); ++I) {
OS << "\t";
I->print(OS, getParent()->getTarget());