diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-24 20:01:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-24 20:01:11 +0000 |
commit | dc4a745ffe4732c24cd854305f119f142b7daf71 (patch) | |
tree | de8fce3df1fa31d819da1b0d89720dbc85ab9c52 /lib/VMCore/Dominators.cpp | |
parent | 70b2bee8e7dda22d70475bf748385654559a0ef8 (diff) |
Make DominanceFrontierBase::print's output prettier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index b49faf84dc..26c02e0f50 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -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"; } } |