mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
These flushes were only needed when the code was transitioning between
std::cout and outs(). llvm-svn: 79891
This commit is contained in:
parent
0c0f711f50
commit
1d440b353e
@ -139,9 +139,7 @@ struct CallGraphSCCPassPrinter : public CallGraphSCCPass {
|
|||||||
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
|
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
|
||||||
Function *F = SCC[i]->getFunction();
|
Function *F = SCC[i]->getFunction();
|
||||||
if (F) {
|
if (F) {
|
||||||
outs().flush();
|
|
||||||
getAnalysisID<Pass>(PassToPrint).print(outs(), F->getParent());
|
getAnalysisID<Pass>(PassToPrint).print(outs(), F->getParent());
|
||||||
outs().flush();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -168,9 +166,7 @@ struct ModulePassPrinter : public ModulePass {
|
|||||||
virtual bool runOnModule(Module &M) {
|
virtual bool runOnModule(Module &M) {
|
||||||
if (!Quiet) {
|
if (!Quiet) {
|
||||||
outs() << "Printing analysis '" << PassToPrint->getPassName() << "':\n";
|
outs() << "Printing analysis '" << PassToPrint->getPassName() << "':\n";
|
||||||
outs().flush();
|
|
||||||
getAnalysisID<Pass>(PassToPrint).print(outs(), &M);
|
getAnalysisID<Pass>(PassToPrint).print(outs(), &M);
|
||||||
outs().flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get and print pass...
|
// Get and print pass...
|
||||||
@ -198,9 +194,7 @@ struct FunctionPassPrinter : public FunctionPass {
|
|||||||
<< "' for function '" << F.getName() << "':\n";
|
<< "' for function '" << F.getName() << "':\n";
|
||||||
}
|
}
|
||||||
// Get and print pass...
|
// Get and print pass...
|
||||||
outs().flush();
|
|
||||||
getAnalysisID<Pass>(PassToPrint).print(outs(), F.getParent());
|
getAnalysisID<Pass>(PassToPrint).print(outs(), F.getParent());
|
||||||
outs().flush();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,10 +217,8 @@ struct LoopPassPrinter : public LoopPass {
|
|||||||
virtual bool runOnLoop(Loop *L, LPPassManager &LPM) {
|
virtual bool runOnLoop(Loop *L, LPPassManager &LPM) {
|
||||||
if (!Quiet) {
|
if (!Quiet) {
|
||||||
outs() << "Printing analysis '" << PassToPrint->getPassName() << "':\n";
|
outs() << "Printing analysis '" << PassToPrint->getPassName() << "':\n";
|
||||||
outs().flush();
|
|
||||||
getAnalysisID<Pass>(PassToPrint).print(outs(),
|
getAnalysisID<Pass>(PassToPrint).print(outs(),
|
||||||
L->getHeader()->getParent()->getParent());
|
L->getHeader()->getParent()->getParent());
|
||||||
outs().flush();
|
|
||||||
}
|
}
|
||||||
// Get and print pass...
|
// Get and print pass...
|
||||||
return false;
|
return false;
|
||||||
@ -255,9 +247,7 @@ struct BasicBlockPassPrinter : public BasicBlockPass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get and print pass...
|
// Get and print pass...
|
||||||
outs().flush();
|
|
||||||
getAnalysisID<Pass>(PassToPrint).print(outs(), BB.getParent()->getParent());
|
getAnalysisID<Pass>(PassToPrint).print(outs(), BB.getParent()->getParent());
|
||||||
outs().flush();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user