summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-05-12 18:29:42 +0000
committerBill Wendling <isanbard@gmail.com>2009-05-12 18:29:42 +0000
commitcb368e295d9c95abf4c0a9c014c7e0ffa7b45f2a (patch)
tree3d44575157c4399e62ce6311f6b9f9b9225b9a2d /llvm/docs/tutorial
parentb61448d4902f28d286e0b2fcb5ff72aea1b3404b (diff)
downloadbcm5719-llvm-cb368e295d9c95abf4c0a9c014c7e0ffa7b45f2a.tar.gz
bcm5719-llvm-cb368e295d9c95abf4c0a9c014c7e0ffa7b45f2a.zip
Use llvm::raw_stream instead of llvm::Streams.
llvm-svn: 71573
Diffstat (limited to 'llvm/docs/tutorial')
-rw-r--r--llvm/docs/tutorial/JITTutorial1.html3
-rw-r--r--llvm/docs/tutorial/JITTutorial2.html3
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/JITTutorial1.html b/llvm/docs/tutorial/JITTutorial1.html
index b063848e09a..ac3958e6427 100644
--- a/llvm/docs/tutorial/JITTutorial1.html
+++ b/llvm/docs/tutorial/JITTutorial1.html
@@ -61,6 +61,7 @@ entry:
#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 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
- PM.add(createPrintModulePass(&amp;llvm::cout));
+ PM.add(createPrintModulePass(&amp;outs()));
PM.run(*Mod);
delete Mod;
diff --git a/llvm/docs/tutorial/JITTutorial2.html b/llvm/docs/tutorial/JITTutorial2.html
index 49192b4f05d..c2483e4d01b 100644
--- a/llvm/docs/tutorial/JITTutorial2.html
+++ b/llvm/docs/tutorial/JITTutorial2.html
@@ -57,6 +57,7 @@ unsigned gcd(unsigned x, unsigned y) {
#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 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
- PM.add(createPrintModulePass(&amp;llvm::cout));
+ PM.add(createPrintModulePass(&amp;outs()));
PM.run(*Mod);
delete Mod;
OpenPOWER on IntegriCloud