aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit588764eb381743afd8b97a64d465bb432dc69890 (patch)
tree52d33e6ae922db2e55cba9aa75888b22097055ff /docs/tutorial
parent39bf051ec2865cd715c41473d2a9fc34ff252534 (diff)
downloadexternal_llvm-588764eb381743afd8b97a64d465bb432dc69890.zip
external_llvm-588764eb381743afd8b97a64d465bb432dc69890.tar.gz
external_llvm-588764eb381743afd8b97a64d465bb432dc69890.tar.bz2
Use llvm::raw_stream instead of llvm::Streams.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/JITTutorial1.html3
-rw-r--r--docs/tutorial/JITTutorial2.html3
2 files changed, 4 insertions, 2 deletions
diff --git a/docs/tutorial/JITTutorial1.html b/docs/tutorial/JITTutorial1.html
index b063848..ac3958e 100644
--- a/docs/tutorial/JITTutorial1.html
+++ b/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/docs/tutorial/JITTutorial2.html b/docs/tutorial/JITTutorial2.html
index 49192b4..c2483e4 100644
--- a/docs/tutorial/JITTutorial2.html
+++ b/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;