Print the MBB ID # along with the bb tag in the -print-machine-instrs output.
llvm-svn: 30708
GitOrigin-RevId: de154b1737f83db9af0be52215b876dee42b1229
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index de397d3..3b486d6 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/lib/CodeGen/MachineBasicBlock.cpp
@@ -96,7 +96,7 @@
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:";