mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 06:00:28 +00:00
Print preds / succs BB numbers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f0e3bb1333
commit
219705131d
@ -126,7 +126,7 @@ void MachineBasicBlock::print(std::ostream &OS) const {
|
|||||||
if (!pred_empty()) {
|
if (!pred_empty()) {
|
||||||
OS << " Predecessors according to CFG:";
|
OS << " Predecessors according to CFG:";
|
||||||
for (const_pred_iterator PI = pred_begin(), E = pred_end(); PI != E; ++PI)
|
for (const_pred_iterator PI = pred_begin(), E = pred_end(); PI != E; ++PI)
|
||||||
OS << " " << *PI;
|
OS << " " << *PI << " (#" << (*PI)->getNumber() << ")";
|
||||||
OS << "\n";
|
OS << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ void MachineBasicBlock::print(std::ostream &OS) const {
|
|||||||
if (!succ_empty()) {
|
if (!succ_empty()) {
|
||||||
OS << " Successors according to CFG:";
|
OS << " Successors according to CFG:";
|
||||||
for (const_succ_iterator SI = succ_begin(), E = succ_end(); SI != E; ++SI)
|
for (const_succ_iterator SI = succ_begin(), E = succ_end(); SI != E; ++SI)
|
||||||
OS << " " << *SI;
|
OS << " " << *SI << " (#" << (*SI)->getNumber() << ")";
|
||||||
OS << "\n";
|
OS << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user