summaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-24 04:13:48 +0000
committerDan Gohman <gohman@apple.com>2009-08-24 04:13:48 +0000
commit127dd968e0bc13075bee7925435b9fce25309d1f (patch)
tree23ae53e4d2499100affa07f7d2406c6140b24c1b /tools/opt
parent61ee100b97adda5dcf1c02df030e5776bb374a5a (diff)
downloadllvm-127dd968e0bc13075bee7925435b9fce25309d1f.tar.gz
llvm-127dd968e0bc13075bee7925435b9fce25309d1f.tar.bz2
llvm-127dd968e0bc13075bee7925435b9fce25309d1f.tar.xz
These flushes were only needed when the code was transitioning between
std::cout and outs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/opt.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 64c5e92c9f..7753c21fa1 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -139,9 +139,7 @@ struct CallGraphSCCPassPrinter : public CallGraphSCCPass {
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 @@ struct ModulePassPrinter : public ModulePass {
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 @@ struct FunctionPassPrinter : public FunctionPass {
<< "' 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 @@ struct LoopPassPrinter : public LoopPass {
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 @@ struct BasicBlockPassPrinter : public BasicBlockPass {
}
// Get and print pass...
- outs().flush();
getAnalysisID<Pass>(PassToPrint).print(outs(), BB.getParent()->getParent());
- outs().flush();
return false;
}