mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make DominanceFrontierBase::print's output prettier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85011 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70b2bee8e7
commit
dc4a745ffe
@ -322,7 +322,7 @@ DominanceFrontier::calculate(const DominatorTree &DT,
|
||||
|
||||
void DominanceFrontierBase::print(raw_ostream &OS, const Module* ) const {
|
||||
for (const_iterator I = begin(), E = end(); I != E; ++I) {
|
||||
OS << " DomFrontier for BB";
|
||||
OS << " DomFrontier for BB ";
|
||||
if (I->first)
|
||||
WriteAsOperand(OS, I->first, false);
|
||||
else
|
||||
@ -332,11 +332,13 @@ void DominanceFrontierBase::print(raw_ostream &OS, const Module* ) const {
|
||||
const std::set<BasicBlock*> &BBs = I->second;
|
||||
|
||||
for (std::set<BasicBlock*>::const_iterator I = BBs.begin(), E = BBs.end();
|
||||
I != E; ++I)
|
||||
I != E; ++I) {
|
||||
OS << ' ';
|
||||
if (*I)
|
||||
WriteAsOperand(OS, *I, false);
|
||||
else
|
||||
OS << " <<exit node>>";
|
||||
OS << "<<exit node>>";
|
||||
}
|
||||
OS << "\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user