eliminate the std::ostream forms of the bitcode writing APIs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-08-23 07:49:08 +00:00
parent a81d29b391
commit b515d75856
9 changed files with 80 additions and 128 deletions

View File

@ -19,7 +19,7 @@
#include "llvm/Constants.h"
#include "llvm/Instructions.h"
#include "llvm/Bitcode/ReaderWriter.h"
#include <iostream>
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
int main() {
@ -56,7 +56,7 @@ int main() {
BB->getInstList().push_back(ReturnInst::Create(Context, Add));
// Output the bitcode file to stdout
WriteBitcodeToFile(M, std::cout);
WriteBitcodeToFile(M, outs());
// Delete the module and all of its contents.
delete M;