From bfdf23f07c73d29bddadb54a60316093478b5b2e Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 11 Mar 2009 19:51:07 +0000 Subject: Fix exaples using IRBuilder. Thanks, Quadrescence and Glip7 from IRC! llvm-svn: 66687 --- llvm/docs/tutorial/LangImpl3.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/docs/tutorial/LangImpl3.html') 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):

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; @@ -128,8 +128,8 @@ uses to contain code.

The Builder object is a helper object that makes it easy to generate LLVM instructions. Instances of the IRBuilder -class keep track of the current place to insert instructions and has methods to -create new instructions.

+class template keep track of the current place to insert instructions and has +methods to create new instructions.

The NamedValues 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; } -- cgit v1.2.3