aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-09 08:29:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-09 08:29:08 +0000
commit219705131d5f6911d4b40fcfdcc614a7f3a5e035 (patch)
tree35dd38dbc25cd5de7d1e59eac0de9e5f7a870b9c /lib/CodeGen/MachineBasicBlock.cpp
parentf0e3bb13337f59c7f158e4af5aa9a11a2e76fa9d (diff)
downloadexternal_llvm-219705131d5f6911d4b40fcfdcc614a7f3a5e035.zip
external_llvm-219705131d5f6911d4b40fcfdcc614a7f3a5e035.tar.gz
external_llvm-219705131d5f6911d4b40fcfdcc614a7f3a5e035.tar.bz2
Print preds / succs BB numbers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index bef2502..e38047b 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/lib/CodeGen/MachineBasicBlock.cpp
@@ -126,7 +126,7 @@ void MachineBasicBlock::print(std::ostream &OS) const {
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 @@ void MachineBasicBlock::print(std::ostream &OS) const {
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";
}
}