Make debugging dumps w/ multiple MachineBBs for a given LLVM BB readable.
llvm-svn: 14205
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 43ac49b..462c562 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -101,7 +101,8 @@
}
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());