X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FModuleMaker%2FModuleMaker.cpp;h=6bc52c12a034497903ca80e622ed4d7d149282ca;hb=a75ce9f5d2236d93c117e861e60e6f3f748c9555;hp=ded78c7b17a23be002755cf67c2fbc7273790116;hpb=1d0be15f89cb5056e20e2d24faa8d6afb1573bca;p=oota-llvm.git diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp index ded78c7b17a..6bc52c12a03 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 +#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;