Delete some unnecessary flushes.
authorDan Gohman <gohman@apple.com>
Tue, 25 Aug 2009 17:48:17 +0000 (17:48 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 25 Aug 2009 17:48:17 +0000 (17:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80013 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llc/llc.cpp
tools/lto/LTOCodeGenerator.cpp

index c194709256a6041bf31c04560141dd9af3ceb989..6ff97f3f5bc04529d8cd0ab4c75ab026d9b05988 100644 (file)
@@ -397,8 +397,6 @@ int main(int argc, char **argv) {
     Passes.doFinalization();
   }
 
-  Out->flush();
-
   // Delete the ostream if it's not a stdout stream
   if (Out != &fouts()) delete Out;
 
index 37f7786033a249e8f14d1099a8acaf93de7e0555..c6217214b4086adbf09c905d517799f007be4130 100644 (file)
@@ -469,8 +469,6 @@ bool LTOCodeGenerator::generateAssemblyCode(formatted_raw_ostream& out,
 
     codeGenPasses->doFinalization();
 
-    out.flush();
-
     return false; // success
 }