summaryrefslogtreecommitdiff
path: root/examples/ModuleMaker
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 07:49:08 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 07:49:08 +0000
commitb515d75856f58a8b3b71d782eb00916d686329ad (patch)
treef44504088f40b4ba59e2583c25ea523e8c15ae82 /examples/ModuleMaker
parenta81d29b3916c2eb87a17f800f3759ce21a4a96fd (diff)
downloadllvm-b515d75856f58a8b3b71d782eb00916d686329ad.tar.gz
llvm-b515d75856f58a8b3b71d782eb00916d686329ad.tar.bz2
llvm-b515d75856f58a8b3b71d782eb00916d686329ad.tar.xz
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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp
index ded78c7b17..6bc52c12a0 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;