eliminate the std::ostream forms of the bitcode writing APIs.
[oota-llvm.git] / examples / ModuleMaker / ModuleMaker.cpp
index ded78c7b17a23be002755cf67c2fbc7273790116..6bc52c12a034497903ca80e622ed4d7d149282ca 100644 (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;