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 | bfdf23f07c73d29bddadb54a60316093478b5b2e (patch) | |
| tree | 5de81c88d4cec980433f7749a1341accd18f379d /llvm/docs/tutorial/LangImpl3.html | |
| parent | a09ba46ee391cb5ea8c667fbd29b8d3017d9e06e (diff) | |
| download | bcm5719-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/LangImpl3.html')
| -rw-r--r-- | llvm/docs/tutorial/LangImpl3.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/tutorial/LangImpl3.html b/llvm/docs/tutorial/LangImpl3.html index 2acd3ddb531..faf11d0592b 100644 --- a/llvm/docs/tutorial/LangImpl3.html +++ b/llvm/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<> Builder; static std::map<std::string, Value*> 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<> Builder; static std::map<std::string, Value*> NamedValues; Value *ErrorV(const char *Str) { Error(Str); return 0; } |

