aboutsummaryrefslogtreecommitdiff
path: root/docs/tutorial/LangImpl3.html
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-03-11 19:51:07 +0000
committerGabor Greif <ggreif@gmail.com>2009-03-11 19:51:07 +0000
commitd6c1ed08f69eb1fb3bec7cba6bee866dec5f18f7 (patch)
treebc116bdbd3e688b979efdddded09355853c484d8 /docs/tutorial/LangImpl3.html
parentad9d21a9527ab8a236e11b6f83bbf67a7a97406d (diff)
Fix exaples using IRBuilder. Thanks, Quadrescence and Glip7 from IRC!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl3.html')
-rw-r--r--docs/tutorial/LangImpl3.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html
index 2acd3ddb53..faf11d0592 100644
--- a/docs/tutorial/LangImpl3.html
+++ b/docs/tutorial/LangImpl3.html
@@ -115,7 +115,7 @@ undeclared parameter):</p>
Value *ErrorV(const char *Str) { Error(Str); return 0; }
static Module *TheModule;
-static IRBuilder Builder;
+static IRBuilder&lt;&gt; Builder;
static std::map&lt;std::string, Value*&gt; NamedValues;
</pre>
</div>
@@ -128,8 +128,8 @@ uses to contain code.</p>
<p>The <tt>Builder</tt> object is a helper object that makes it easy to generate
LLVM instructions. Instances of the <a
href="http://llvm.org/doxygen/IRBuilder_8h-source.html"><tt>IRBuilder</tt></a>
-class keep track of the current place to insert instructions and has methods to
-create new instructions.</p>
+class template keep track of the current place to insert instructions and has
+methods to create new instructions.</p>
<p>The <tt>NamedValues</tt> map keeps track of which values are defined in the
current scope and what their LLVM representation is. (In other words, it is a
@@ -1027,7 +1027,7 @@ static PrototypeAST *ParseExtern() {
//===----------------------------------------------------------------------===//
static Module *TheModule;
-static IRBuilder Builder;
+static IRBuilder&lt;&gt; Builder;
static std::map&lt;std::string, Value*&gt; NamedValues;
Value *ErrorV(const char *Str) { Error(Str); return 0; }