diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 07:49:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 07:49:08 +0000 |
commit | 6973395cc70c59a0abe520fb65cac00eb6f209df (patch) | |
tree | 21ae3a607bc95726ed11fb8c448988dff445c678 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 91922253c52bf5e4f56d10d160ea30edbbeec516 (diff) | |
download | llvm-6973395cc70c59a0abe520fb65cac00eb6f209df.zip llvm-6973395cc70c59a0abe520fb65cac00eb6f209df.tar.gz llvm-6973395cc70c59a0abe520fb65cac00eb6f209df.tar.bz2 |
eliminate the std::ostream forms of the bitcode writing APIs.
llvm-svn: 79840
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 6a14cb3..9cb5758 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -26,7 +26,6 @@ #include "llvm/ValueSymbolTable.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MathExtras.h" -#include "llvm/Support/Streams.h" #include "llvm/Support/raw_ostream.h" #include "llvm/System/Program.h" using namespace llvm; @@ -1468,16 +1467,6 @@ static void EmitDarwinBCTrailer(BitstreamWriter &Stream, unsigned BufferSize) { /// WriteBitcodeToFile - Write the specified module to the specified output /// stream. -void llvm::WriteBitcodeToFile(const Module *M, std::ostream &Out) { - raw_os_ostream RawOut(Out); - // If writing to stdout, set binary mode. - if (llvm::cout == Out) - sys::Program::ChangeStdoutToBinary(); - WriteBitcodeToFile(M, RawOut); -} - -/// WriteBitcodeToFile - Write the specified module to the specified output -/// stream. void llvm::WriteBitcodeToFile(const Module *M, raw_ostream &Out) { std::vector<unsigned char> Buffer; BitstreamWriter Stream(Buffer); |