mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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
This commit is contained in:
@@ -17,7 +17,7 @@ using namespace llvm;
|
|||||||
/*===-- Operations on modules ---------------------------------------------===*/
|
/*===-- Operations on modules ---------------------------------------------===*/
|
||||||
|
|
||||||
int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) {
|
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())
|
if (!OS.fail())
|
||||||
WriteBitcodeToFile(unwrap(M), OS);
|
WriteBitcodeToFile(unwrap(M), OS);
|
||||||
|
Reference in New Issue
Block a user