aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-20 16:26:25 +0000
committerDan Gohman <gohman@apple.com>2009-04-20 16:26:25 +0000
commitf30a8641d1cfcd3514fd41a2c9055d2740e2cc3b (patch)
tree886ddce14ebcf31806177eeed3b038622b20b7a2 /lib/VMCore
parent51747a7e51d4e567d55b1bdb7b7d6a193dc9ea5a (diff)
downloadexternal_llvm-f30a8641d1cfcd3514fd41a2c9055d2740e2cc3b.zip
external_llvm-f30a8641d1cfcd3514fd41a2c9055d2740e2cc3b.tar.gz
external_llvm-f30a8641d1cfcd3514fd41a2c9055d2740e2cc3b.tar.bz2
It's not necessary for PrintModulePass to flush the output streams
now that errs() is properly non-buffered. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/PrintModulePass.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/VMCore/PrintModulePass.cpp b/lib/VMCore/PrintModulePass.cpp
index 7cb009a..0a7f449 100644
--- a/lib/VMCore/PrintModulePass.cpp
+++ b/lib/VMCore/PrintModulePass.cpp
@@ -38,7 +38,6 @@ namespace {
bool runOnModule(Module &M) {
(*Out) << M;
- Out->flush();
return false;
}
@@ -67,7 +66,6 @@ namespace {
//
bool runOnFunction(Function &F) {
(*Out) << Banner << static_cast<Value&>(F);
- Out->flush();
return false;
}