From de9b4c4a7f772ec1afe45160240ba567a52067d3 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 12 Apr 2009 20:15:44 +0000 Subject: [PATCH] Fix compile error. Pointed out by mait on #llvm IRC! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68910 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/JITTutorial1.html | 2 +- docs/tutorial/JITTutorial2.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/JITTutorial1.html b/docs/tutorial/JITTutorial1.html index b4054a16431..b063848e09a 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 3d918b039b2..49192b4f05d 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;