From 3a56ae8bbbf04a3051a13ea7a30318c923bb30cc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 21 Jul 2009 22:47:03 +0000 Subject: Various doc updates from Edward O'Callaghan! llvm-svn: 76668 --- llvm/docs/tutorial/JITTutorial1.html | 4 ++-- llvm/docs/tutorial/LangImpl3.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/docs/tutorial') diff --git a/llvm/docs/tutorial/JITTutorial1.html b/llvm/docs/tutorial/JITTutorial1.html index ac3958e..5c65399 100644 --- a/llvm/docs/tutorial/JITTutorial1.html +++ b/llvm/docs/tutorial/JITTutorial1.html @@ -107,7 +107,7 @@ first chunk of our makeLLVMModule():

 Module* makeLLVMModule() {
   // Module Construction
-  Module* mod = new Module("test");
+  Module* mod = new Module("test", getGlobalContext());
 
@@ -200,7 +200,7 @@ function will interoperate properly with C code, which is a good thing.

Owen Anderson
The LLVM Compiler Infrastructure
- Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2009-07-21 11:05:13 -0700 (Tue, 21 Jul 2009) $ diff --git a/llvm/docs/tutorial/LangImpl3.html b/llvm/docs/tutorial/LangImpl3.html index 499b4c2..5031427 100644 --- a/llvm/docs/tutorial/LangImpl3.html +++ b/llvm/docs/tutorial/LangImpl3.html @@ -1028,7 +1028,7 @@ static PrototypeAST *ParseExtern() { //===----------------------------------------------------------------------===// static Module *TheModule; -static IRBuilder<> Builder; +static IRBuilder<> Builder(getGlobalContext()); static std::map<std::string, Value*> NamedValues; Value *ErrorV(const char *Str) { Error(Str); return 0; } @@ -1249,7 +1249,7 @@ int main() { Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2009-07-21 11:05:13 -0700 (Tue, 21 Jul 2009) $ -- cgit v1.1