diff options
| author | Dan Gohman <gohman@apple.com> | 2010-05-27 20:26:51 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-05-27 20:26:51 +0000 |
| commit | c67996a5f672cdfdf03324a26e744ca5fe087ba1 (patch) | |
| tree | 107332626112931d36ca3c75390aeb341b83274e /lib/Bitcode/Writer | |
| parent | 8269974e9c1c53bad0f1b43c6d9c18dbec07aec4 (diff) | |
| download | external_llvm-c67996a5f672cdfdf03324a26e744ca5fe087ba1.zip external_llvm-c67996a5f672cdfdf03324a26e744ca5fe087ba1.tar.gz external_llvm-c67996a5f672cdfdf03324a26e744ca5fe087ba1.tar.bz2 | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
| -rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 884485d..d91696f 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1664,9 +1664,6 @@ void llvm::WriteBitcodeToFile(const Module *M, raw_ostream &Out) { // 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 |
