aboutsummaryrefslogtreecommitdiff
path: root/docs/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/JITTutorial1.html2
-rw-r--r--docs/tutorial/JITTutorial2.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/JITTutorial1.html b/docs/tutorial/JITTutorial1.html
index b4054a1643..b063848e09 100644
--- a/docs/tutorial/JITTutorial1.html
+++ b/docs/tutorial/JITTutorial1.html
@@ -78,7 +78,7 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
- PM.add(new PrintModulePass(&llvm::cout));
+ PM.add(createPrintModulePass(&llvm::cout));
PM.run(*Mod);
delete Mod;
diff --git a/docs/tutorial/JITTutorial2.html b/docs/tutorial/JITTutorial2.html
index 3d918b039b..49192b4f05 100644
--- a/docs/tutorial/JITTutorial2.html
+++ b/docs/tutorial/JITTutorial2.html
@@ -68,7 +68,7 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
- PM.add(new PrintModulePass(&llvm::cout));
+ PM.add(createPrintModulePass(&llvm::cout));
PM.run(*Mod);
delete Mod;