[llvm-commits] [llvm] r69602 - /llvm/trunk/lib/VMCore/PrintModulePass.cpp

Dan Gohman gohman at apple.com
Mon Apr 20 09:26:25 PDT 2009


Author: djg
Date: Mon Apr 20 11:26:25 2009
New Revision: 69602

URL: http://llvm.org/viewvc/llvm-project?rev=69602&view=rev
Log:
It's not necessary for PrintModulePass to flush the output streams
now that errs() is properly non-buffered.

Modified:
    llvm/trunk/lib/VMCore/PrintModulePass.cpp

Modified: llvm/trunk/lib/VMCore/PrintModulePass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PrintModulePass.cpp?rev=69602&r1=69601&r2=69602&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/PrintModulePass.cpp (original)
+++ llvm/trunk/lib/VMCore/PrintModulePass.cpp Mon Apr 20 11:26:25 2009
@@ -38,7 +38,6 @@
     
     bool runOnModule(Module &M) {
       (*Out) << M;
-      Out->flush();
       return false;
     }
     
@@ -67,7 +66,6 @@
     //
     bool runOnFunction(Function &F) {
       (*Out) << Banner << static_cast<Value&>(F);
-      Out->flush();
       return false;
     }
     





More information about the llvm-commits mailing list