Skip to content
Snippets Groups Projects
Commit 2cbca4e2 authored by Dan Gohman's avatar Dan Gohman
Browse files

Make DominanceFrontierBase::print's output prettier.

llvm-svn: 85011
parent afbf2561
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment