[llvm-commits] CVS: llvm/lib/CodeGen/MachineBasicBlock.cpp

Evan Cheng evan.cheng at apple.com
Fri Mar 9 00:29:36 PST 2007



Changes in directory llvm/lib/CodeGen:

MachineBasicBlock.cpp updated: 1.42 -> 1.43
---
Log message:

Print preds / succs BB numbers.

---
Diffs of the changes:  (+2 -2)

 MachineBasicBlock.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/MachineBasicBlock.cpp
diff -u llvm/lib/CodeGen/MachineBasicBlock.cpp:1.42 llvm/lib/CodeGen/MachineBasicBlock.cpp:1.43
--- llvm/lib/CodeGen/MachineBasicBlock.cpp:1.42	Mon Feb 19 15:49:53 2007
+++ llvm/lib/CodeGen/MachineBasicBlock.cpp	Fri Mar  9 02:29:08 2007
@@ -126,7 +126,7 @@
   if (!pred_empty()) {
     OS << "    Predecessors according to CFG:";
     for (const_pred_iterator PI = pred_begin(), E = pred_end(); PI != E; ++PI)
-      OS << " " << *PI;
+      OS << " " << *PI << " (#" << (*PI)->getNumber() << ")";
     OS << "\n";
   }
   
@@ -139,7 +139,7 @@
   if (!succ_empty()) {
     OS << "    Successors according to CFG:";
     for (const_succ_iterator SI = succ_begin(), E = succ_end(); SI != E; ++SI)
-      OS << " " << *SI;
+      OS << " " << *SI << " (#" << (*SI)->getNumber() << ")";
     OS << "\n";
   }
 }






More information about the llvm-commits mailing list