mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-19 15:13:37 -04:00
Whoops, the old LLVMWriteBitcodeToFileHandle closed the stream.
Luckily this never was released. llvm-svn: 97857
This commit is contained in:
@@ -28,7 +28,7 @@ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) {
|
||||
}
|
||||
|
||||
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
|
||||
raw_fd_ostream OS(FileHandle, false);
|
||||
raw_fd_ostream OS(FileHandle, true);
|
||||
|
||||
WriteBitcodeToFile(unwrap(M), OS);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user