summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 20:26:51 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 20:26:51 +0000
commita880546c65c984f31b9c52db35faa95f9d18a4b0 (patch)
tree51f32dc8d928fd99f28ba524d420f162f0385fdc /llvm/lib/Bitcode/Writer
parent7a9dedf0aba80434f73f7b57e53c10e67a949077 (diff)
downloadbcm5719-llvm-a880546c65c984f31b9c52db35faa95f9d18a4b0.tar.gz
bcm5719-llvm-a880546c65c984f31b9c52db35faa95f9d18a4b0.zip
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. llvm-svn: 104885
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 884485dec94..d91696f0e0a 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud