mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
Sorry, typo :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
037dd942c9
commit
3194012664
@ -35,8 +35,10 @@ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) {
|
|||||||
// libSystem? As is, the user will just get a linker error if they use this on
|
// libSystem? As is, the user will just get a linker error if they use this on
|
||||||
// non-GCC. Some C++ stdlibs even have ofstream::ofstream(int fd).
|
// non-GCC. Some C++ stdlibs even have ofstream::ofstream(int fd).
|
||||||
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
|
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
|
||||||
__gnu_cxx::stdio_filebuf<char> Buffer(FileHandle, std::ios_base::out);
|
__gnu_cxx::stdio_filebuf<char> Buffer(FileHandle, std::ios_base::out |
|
||||||
std::ostream OS(&Buffer, std::ios::out | std::ios::trunc | std::ios::binary);
|
std::ios::trunc |
|
||||||
|
std::ios::binary);
|
||||||
|
std::ostream OS(&Buffer);
|
||||||
|
|
||||||
if (!OS.fail())
|
if (!OS.fail())
|
||||||
WriteBitcodeToFile(unwrap(M), OS);
|
WriteBitcodeToFile(unwrap(M), OS);
|
||||||
|
Loading…
Reference in New Issue
Block a user