Sorry, typo :)
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 3 Dec 2007 14:35:57 +0000 (14:35 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 3 Dec 2007 14:35:57 +0000 (14:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44534 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Writer/BitWriter.cpp

index f35b80749e9cf097b60344fe229f772c559bc2d7..d7b1510466260c2547030fb7a5b22ddcc3c2fa75 100644 (file)
@@ -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 
 // non-GCC. Some C++ stdlibs even have ofstream::ofstream(int fd).
 int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
 // 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).
 int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
-  __gnu_cxx::stdio_filebuf<char> Buffer(FileHandle, std::ios_base::out);
-  std::ostream OS(&Buffer, std::ios::out | std::ios::trunc | std::ios::binary);
+  __gnu_cxx::stdio_filebuf<char> Buffer(FileHandle, std::ios_base::out |
+                                                    std::ios::trunc |
+                                                    std::ios::binary);
+  std::ostream OS(&Buffer);
   
   if (!OS.fail())
     WriteBitcodeToFile(unwrap(M), OS);
   
   if (!OS.fail())
     WriteBitcodeToFile(unwrap(M), OS);