[llvm-commits] [llvm] r71573 - in /llvm/trunk/docs/tutorial: JITTutorial1.html JITTutorial2.html

Bill Wendling isanbard at gmail.com
Tue May 12 11:29:42 PDT 2009


Author: void
Date: Tue May 12 13:29:42 2009
New Revision: 71573

URL: http://llvm.org/viewvc/llvm-project?rev=71573&view=rev
Log:
Use llvm::raw_stream instead of llvm::Streams.

Modified:
    llvm/trunk/docs/tutorial/JITTutorial1.html
    llvm/trunk/docs/tutorial/JITTutorial2.html

Modified: llvm/trunk/docs/tutorial/JITTutorial1.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/JITTutorial1.html?rev=71573&r1=71572&r2=71573&view=diff

==============================================================================
--- llvm/trunk/docs/tutorial/JITTutorial1.html (original)
+++ llvm/trunk/docs/tutorial/JITTutorial1.html Tue May 12 13:29:42 2009
@@ -61,6 +61,7 @@
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/Assembly/PrintModulePass.h"
 #include "llvm/Support/IRBuilder.h"
+#include "llvm/Support/raw_ostream.h"
 </pre>
 </div>
 
@@ -78,7 +79,7 @@
   verifyModule(*Mod, PrintMessageAction);
 
   PassManager PM;
-  PM.add(createPrintModulePass(&llvm::cout));
+  PM.add(createPrintModulePass(&outs()));
   PM.run(*Mod);
 
   delete Mod;

Modified: llvm/trunk/docs/tutorial/JITTutorial2.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/JITTutorial2.html?rev=71573&r1=71572&r2=71573&view=diff

==============================================================================
--- llvm/trunk/docs/tutorial/JITTutorial2.html (original)
+++ llvm/trunk/docs/tutorial/JITTutorial2.html Tue May 12 13:29:42 2009
@@ -57,6 +57,7 @@
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/Assembly/PrintModulePass.h"
 #include "llvm/Support/IRBuilder.h"
+#include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 
@@ -68,7 +69,7 @@
   verifyModule(*Mod, PrintMessageAction);
   
   PassManager PM;
-  PM.add(createPrintModulePass(&llvm::cout));
+  PM.add(createPrintModulePass(&outs()));
   PM.run(*Mod);
 
   delete Mod;  





More information about the llvm-commits mailing list