aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-03 20:17:24 +0000
committerChris Lattner <sabre@nondot.org>2006-10-03 20:17:24 +0000
commitde154b1737f83db9af0be52215b876dee42b1229 (patch)
tree59d8112527632070fb91397f20c664aa8093944d /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent9744b68d574017b2f6d545747c655cd4f82c0a46 (diff)
downloadllvm-de154b1737f83db9af0be52215b876dee42b1229.zip
llvm-de154b1737f83db9af0be52215b876dee42b1229.tar.gz
llvm-de154b1737f83db9af0be52215b876dee42b1229.tar.bz2
Print the MBB ID # along with the bb tag in the -print-machine-instrs output.
llvm-svn: 30708
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index de397d3..3b486d6 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -96,7 +96,7 @@ void MachineBasicBlock::print(std::ostream &OS) const {
const BasicBlock *LBB = getBasicBlock();
if (LBB)
OS << "\n" << LBB->getName() << " (" << (const void*)this
- << ", LLVM BB @" << (const void*) LBB << "):\n";
+ << ", LLVM BB @" << (const void*) LBB << ", ID#" << getNumber()<< "):\n";
// Print the preds of this block according to the CFG.
if (!pred_empty()) {
OS << " Predecessors according to CFG:";