[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Chris Lattner
sabre at nondot.org
Sun May 6 12:19:42 PDT 2007
Changes in directory llvm/lib/Bitcode/Writer:
BitcodeWriter.cpp updated: 1.50 -> 1.51
---
Log message:
Flush the file after writing bitcode so that clients who don't close their
ofstreams will be ok.
---
Diffs of the changes: (+3 -0)
BitcodeWriter.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff -u llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.50 llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.51
--- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.50 Sat May 5 22:12:47 2007
+++ llvm/lib/Bitcode/Writer/BitcodeWriter.cpp Sun May 6 14:19:23 2007
@@ -1201,4 +1201,7 @@
// Write the generated bitstream to "Out".
Out.write((char*)&Buffer.front(), Buffer.size());
+
+ // Make sure it hits disk now.
+ Out.flush();
}
More information about the llvm-commits
mailing list