diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-17 22:26:53 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-17 22:26:53 +0000 |
commit | 4300ca9d3274b42d8500d0429902e739920bc143 (patch) | |
tree | 320e710d8194d6f6db83d61ee45ca0dafb632ae3 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 7887da36de808374fa39f66eef5ac20bf2e56bc2 (diff) | |
download | bcm5719-llvm-4300ca9d3274b42d8500d0429902e739920bc143.tar.gz bcm5719-llvm-4300ca9d3274b42d8500d0429902e739920bc143.zip |
Make debugging dumps w/ multiple MachineBBs for a given LLVM BB readable.
llvm-svn: 14205
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 43ac49bd777..462c5626596 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -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()); |