[llvm-commits] [llvm] r79891 - /llvm/trunk/tools/opt/opt.cpp
Dan Gohman
gohman at apple.com
Sun Aug 23 21:13:49 PDT 2009
Author: djg
Date: Sun Aug 23 23:13:48 2009
New Revision: 79891
URL: http://llvm.org/viewvc/llvm-project?rev=79891&view=rev
Log:
These flushes were only needed when the code was transitioning between
std::cout and outs().
Modified:
llvm/trunk/tools/opt/opt.cpp
Modified: llvm/trunk/tools/opt/opt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/opt.cpp?rev=79891&r1=79890&r2=79891&view=diff
==============================================================================
--- llvm/trunk/tools/opt/opt.cpp (original)
+++ llvm/trunk/tools/opt/opt.cpp Sun Aug 23 23:13:48 2009
@@ -139,9 +139,7 @@
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
Function *F = SCC[i]->getFunction();
if (F) {
- outs().flush();
getAnalysisID<Pass>(PassToPrint).print(outs(), F->getParent());
- outs().flush();
}
}
}
@@ -168,9 +166,7 @@
virtual bool runOnModule(Module &M) {
if (!Quiet) {
outs() << "Printing analysis '" << PassToPrint->getPassName() << "':\n";
- outs().flush();
getAnalysisID<Pass>(PassToPrint).print(outs(), &M);
- outs().flush();
}
// Get and print pass...
@@ -198,9 +194,7 @@
<< "' for function '" << F.getName() << "':\n";
}
// Get and print pass...
- outs().flush();
getAnalysisID<Pass>(PassToPrint).print(outs(), F.getParent());
- outs().flush();
return false;
}
@@ -223,10 +217,8 @@
virtual bool runOnLoop(Loop *L, LPPassManager &LPM) {
if (!Quiet) {
outs() << "Printing analysis '" << PassToPrint->getPassName() << "':\n";
- outs().flush();
getAnalysisID<Pass>(PassToPrint).print(outs(),
L->getHeader()->getParent()->getParent());
- outs().flush();
}
// Get and print pass...
return false;
@@ -255,9 +247,7 @@
}
// Get and print pass...
- outs().flush();
getAnalysisID<Pass>(PassToPrint).print(outs(), BB.getParent()->getParent());
- outs().flush();
return false;
}
More information about the llvm-commits
mailing list