mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Print out MachineBasicBlock successor weights when available.
llvm-svn: 161804
This commit is contained in:
parent
a921b121e2
commit
d25a03b9af
@ -311,8 +311,11 @@ void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
|
||||
if (!succ_empty()) {
|
||||
if (Indexes) OS << '\t';
|
||||
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 << " BB#" << (*SI)->getNumber();
|
||||
if (!Weights.empty())
|
||||
OS << '(' << *getWeightIterator(SI) << ')';
|
||||
}
|
||||
OS << '\n';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user