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 | 9c945ce2229dd278974b4b7012c94421eef920fc (patch) | |
tree | 83e31bbb90dd03a8a3318e1d5dd3e2b662846af6 /lib/Bitcode/Writer | |
parent | 55291e3273fcf265e99c597b98a797458295c7c0 (diff) | |
download | external_llvm-9c945ce2229dd278974b4b7012c94421eef920fc.zip external_llvm-9c945ce2229dd278974b4b7012c94421eef920fc.tar.gz external_llvm-9c945ce2229dd278974b4b7012c94421eef920fc.tar.bz2 |
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')
-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 d7b1510..727ea3f 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); |