diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-03-11 19:51:07 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-03-11 19:51:07 +0000 |
commit | 56cca5f13a13c8c59a8143825b23a25cf4831ba7 (patch) | |
tree | bc116bdbd3e688b979efdddded09355853c484d8 /docs/tutorial/LangImpl7.html | |
parent | 20acb4a30b48b5be700804af5408fd8bcf992dd2 (diff) | |
download | external_llvm-56cca5f13a13c8c59a8143825b23a25cf4831ba7.zip external_llvm-56cca5f13a13c8c59a8143825b23a25cf4831ba7.tar.gz external_llvm-56cca5f13a13c8c59a8143825b23a25cf4831ba7.tar.bz2 |
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/LangImpl7.html')
-rw-r--r-- | docs/tutorial/LangImpl7.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index e146e56..f560648 100644 --- a/docs/tutorial/LangImpl7.html +++ b/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 &VarName) { - IRBuilder TmpB(&TheFunction->getEntryBlock(), + IRBuilder<> TmpB(&TheFunction->getEntryBlock(), TheFunction->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<> Builder; static std::map<std::string, AllocaInst*> 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 &VarName) { - IRBuilder TmpB(&TheFunction->getEntryBlock(), + IRBuilder<> TmpB(&TheFunction->getEntryBlock(), TheFunction->getEntryBlock().begin()); return TmpB.CreateAlloca(Type::DoubleTy, 0, VarName.c_str()); } |