summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbf96d99383853e4bd2a6802ad59163f14f5b4380 (patch)
tree12fbbf459340f7d51efd02fd6b8675f4d9e4acb3 /llvm/lib/Bitcode
parent7c5442b0e315c855b9b0891238f16f055aad1c64 (diff)
downloadbcm5719-llvm-bf96d99383853e4bd2a6802ad59163f14f5b4380.tar.gz
bcm5719-llvm-bf96d99383853e4bd2a6802ad59163f14f5b4380.zip
Sorry, typo :)
llvm-svn: 44534
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitWriter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitWriter.cpp b/llvm/lib/Bitcode/Writer/BitWriter.cpp
index f35b80749e9..d7b15104662 100644
--- a/llvm/lib/Bitcode/Writer/BitWriter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud