Print the MBB ID # along with the bb tag in the -print-machine-instrs output.
authorChris Lattner <sabre@nondot.org>
Tue, 3 Oct 2006 20:17:24 +0000 (20:17 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Oct 2006 20:17:24 +0000 (20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30708 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBasicBlock.cpp

index de397d385761cb1bfa3922714428dac9a6d2f6b1..3b486d61ed2347d3b5b29a7d21276732415caf3b 100644 (file)
@@ -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:";