[llvm-commits] [llvm] r104885 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

Dan Gohman gohman at apple.com
Thu May 27 13:26:51 PDT 2010


Author: djg
Date: Thu May 27 15:26:51 2010
New Revision: 104885

URL: http://llvm.org/viewvc/llvm-project?rev=104885&view=rev
Log:
Don't flush the raw_ostream in llvm::WriteBitcodeToFile; it's at
the wrong level. Clients which need to leave the stream open but
which still require the bitcode bits to be on disk should call
flush themselves.

Modified:
    llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=104885&r1=104884&r2=104885&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Thu May 27 15:26:51 2010
@@ -1664,9 +1664,6 @@
 
   // Write the generated bitstream to "Out".
   Out.write((char*)&Buffer.front(), Buffer.size());
-
-  // Make sure it hits disk now.
-  Out.flush();
 }
 
 /// WriteBitcodeToStream - Write the specified module to the specified output





More information about the llvm-commits mailing list