diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-03 14:50:37 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-03 14:50:37 +0000 |
commit | 94007ec7da12c97fab6641100e8c1c1d2b23d8c8 (patch) | |
tree | 83e31bbb90dd03a8a3318e1d5dd3e2b662846af6 /lib/Bitcode/Writer/BitWriter.cpp | |
parent | 3194012664b051d260281f54b2a1534a4fe26eac (diff) |
Applying Anton's binmode fix to the other ofstream too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitWriter.cpp')
-rw-r--r-- | lib/Bitcode/Writer/BitWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitWriter.cpp b/lib/Bitcode/Writer/BitWriter.cpp index d7b1510466..727ea3ff63 100644 --- a/lib/Bitcode/Writer/BitWriter.cpp +++ b/lib/Bitcode/Writer/BitWriter.cpp @@ -17,7 +17,7 @@ using namespace llvm; /*===-- Operations on modules ---------------------------------------------===*/ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) { - std::ofstream OS(Path); + std::ofstream OS(Path, std::ios_base::out|std::ios::trunc|std::ios::binary); if (!OS.fail()) WriteBitcodeToFile(unwrap(M), OS); |