projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3194012
)
Applying Anton's binmode fix to the other ofstream too.
author
Gordon Henriksen
<gordonhenriksen@mac.com>
Mon, 3 Dec 2007 14:50:37 +0000
(14:50 +0000)
committer
Gordon Henriksen
<gordonhenriksen@mac.com>
Mon, 3 Dec 2007 14:50:37 +0000
(14:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44535
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Writer/BitWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Writer/BitWriter.cpp
b/lib/Bitcode/Writer/BitWriter.cpp
index d7b1510466260c2547030fb7a5b22ddcc3c2fa75..727ea3ff63607b3244ace73c5b0a895643dabe33 100644
(file)
--- 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);