1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Whoops, the old LLVMWriteBitcodeToFileHandle closed the stream.

Luckily this never was released.

llvm-svn: 97857
This commit is contained in:
Erick Tryzelaar 2010-03-06 00:30:01 +00:00
parent 7c33f3d1f3
commit 6e35683720

View File

@ -28,7 +28,7 @@ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) {
} }
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) { int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
raw_fd_ostream OS(FileHandle, false); raw_fd_ostream OS(FileHandle, true);
WriteBitcodeToFile(unwrap(M), OS); WriteBitcodeToFile(unwrap(M), OS);
return 0; return 0;