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:
parent
7c33f3d1f3
commit
6e35683720
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user