summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9bc8d4b6f2a695a7889a71d3b3e3d24e210e85b6 (patch)
tree51455aa2ed7371ce4d17e7183e8094250cf05e02 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent91b0790297b8b20607b60be32a82e72af03fd855 (diff)
downloadbcm5719-llvm-9bc8d4b6f2a695a7889a71d3b3e3d24e210e85b6.tar.gz
bcm5719-llvm-9bc8d4b6f2a695a7889a71d3b3e3d24e210e85b6.zip
Print preds / succs BB numbers.
llvm-svn: 35040
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index bef2502089e..e38047b277e 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/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";
}
}
OpenPOWER on IntegriCloud