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 | b515d75856f58a8b3b71d782eb00916d686329ad (patch) | |
tree | f44504088f40b4ba59e2583c25ea523e8c15ae82 /examples/ModuleMaker | |
parent | a81d29b3916c2eb87a17f800f3759ce21a4a96fd (diff) | |
download | external_llvm-b515d75856f58a8b3b71d782eb00916d686329ad.zip external_llvm-b515d75856f58a8b3b71d782eb00916d686329ad.tar.gz external_llvm-b515d75856f58a8b3b71d782eb00916d686329ad.tar.bz2 |
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
Diffstat (limited to 'examples/ModuleMaker')
-rw-r--r-- | examples/ModuleMaker/ModuleMaker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp index ded78c7..6bc52c1 100644 --- a/examples/ModuleMaker/ModuleMaker.cpp +++ b/examples/ModuleMaker/ModuleMaker.cpp @@ -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; |