summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl7.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
commitbfdf23f07c73d29bddadb54a60316093478b5b2e (patch)
tree5de81c88d4cec980433f7749a1341accd18f379d /llvm/docs/tutorial/LangImpl7.html
parenta09ba46ee391cb5ea8c667fbd29b8d3017d9e06e (diff)
downloadbcm5719-llvm-bfdf23f07c73d29bddadb54a60316093478b5b2e.tar.gz
bcm5719-llvm-bfdf23f07c73d29bddadb54a60316093478b5b2e.zip
Fix exaples using IRBuilder. Thanks, Quadrescence and Glip7 from IRC!
llvm-svn: 66687
Diffstat (limited to 'llvm/docs/tutorial/LangImpl7.html')
-rw-r--r--llvm/docs/tutorial/LangImpl7.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl7.html b/llvm/docs/tutorial/LangImpl7.html
index e146e561637..f5606484eb9 100644
--- a/llvm/docs/tutorial/LangImpl7.html
+++ b/llvm/docs/tutorial/LangImpl7.html
@@ -422,7 +422,7 @@ function:</p>
/// the function. This is used for mutable variables etc.
static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction,
const std::string &amp;VarName) {
- IRBuilder TmpB(&amp;TheFunction-&gt;getEntryBlock(),
+ IRBuilder&lt;&gt; TmpB(&amp;TheFunction-&gt;getEntryBlock(),
TheFunction-&gt;getEntryBlock().begin());
return TmpB.CreateAlloca(Type::DoubleTy, 0, VarName.c_str());
}
@@ -1605,7 +1605,7 @@ static PrototypeAST *ParseExtern() {
//===----------------------------------------------------------------------===//
static Module *TheModule;
-static IRBuilder Builder;
+static IRBuilder&lt;&gt; Builder;
static std::map&lt;std::string, AllocaInst*&gt; NamedValues;
static FunctionPassManager *TheFPM;
@@ -1615,7 +1615,7 @@ Value *ErrorV(const char *Str) { Error(Str); return 0; }
/// the function. This is used for mutable variables etc.
static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction,
const std::string &amp;VarName) {
- IRBuilder TmpB(&amp;TheFunction-&gt;getEntryBlock(),
+ IRBuilder&lt;&gt; TmpB(&amp;TheFunction-&gt;getEntryBlock(),
TheFunction-&gt;getEntryBlock().begin());
return TmpB.CreateAlloca(Type::DoubleTy, 0, VarName.c_str());
}
OpenPOWER on IntegriCloud