aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-12-03 14:35:57 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-12-03 14:35:57 +0000
commit55291e3273fcf265e99c597b98a797458295c7c0 (patch)
treee40fe213900f9907763df882f31795e7cf3e93c4 /lib/Bitcode
parentfa015a503c1736f33b206767d006e3fccb8fca9b (diff)
downloadexternal_llvm-55291e3273fcf265e99c597b98a797458295c7c0.zip
external_llvm-55291e3273fcf265e99c597b98a797458295c7c0.tar.gz
external_llvm-55291e3273fcf265e99c597b98a797458295c7c0.tar.bz2
Sorry, typo :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/BitWriter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Bitcode/Writer/BitWriter.cpp b/lib/Bitcode/Writer/BitWriter.cpp
index f35b807..d7b1510 100644
--- a/lib/Bitcode/Writer/BitWriter.cpp
+++ b/lib/Bitcode/Writer/BitWriter.cpp
@@ -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) {
- __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);