[llvm-commits] [llvm] r85011 - /llvm/trunk/lib/VMCore/Dominators.cpp
Dan Gohman
gohman at apple.com
Sat Oct 24 13:01:11 PDT 2009
Author: djg
Date: Sat Oct 24 15:01:11 2009
New Revision: 85011
URL: http://llvm.org/viewvc/llvm-project?rev=85011&view=rev
Log:
Make DominanceFrontierBase::print's output prettier.
Modified:
llvm/trunk/lib/VMCore/Dominators.cpp
Modified: llvm/trunk/lib/VMCore/Dominators.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Dominators.cpp?rev=85011&r1=85010&r2=85011&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Dominators.cpp (original)
+++ llvm/trunk/lib/VMCore/Dominators.cpp Sat Oct 24 15:01:11 2009
@@ -322,7 +322,7 @@
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 @@
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";
}
}
More information about the llvm-commits
mailing list