summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl5.html
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-04-13 06:22:09 +0000
committerDuncan Sands <baldrick@free.fr>2008-04-13 06:22:09 +0000
commita07136ee2dc29579568e4f08c65db974855841dc (patch)
treede2cd5ce847fd3fbbb0858c23b058d239355110b /llvm/docs/tutorial/LangImpl5.html
parentfcd78b02c213d6e436f53fa5ef830e28189db900 (diff)
downloadbcm5719-llvm-a07136ee2dc29579568e4f08c65db974855841dc.tar.gz
bcm5719-llvm-a07136ee2dc29579568e4f08c65db974855841dc.zip
Merge LLVMBuilder and FoldingBuilder, calling
the result IRBuilder. Patch by Dominic Hamon. llvm-svn: 49604
Diffstat (limited to 'llvm/docs/tutorial/LangImpl5.html')
-rw-r--r--llvm/docs/tutorial/LangImpl5.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl5.html b/llvm/docs/tutorial/LangImpl5.html
index f40efb26d85..8081fc3821a 100644
--- a/llvm/docs/tutorial/LangImpl5.html
+++ b/llvm/docs/tutorial/LangImpl5.html
@@ -400,7 +400,7 @@ other two blocks are created, but aren't yet inserted into the function.</p>
<p>Once the blocks are created, we can emit the conditional branch that chooses
between them. Note that creating new blocks does not implicitly affect the
-LLVMBuilder, so it is still inserting into the block that the condition
+IRBuilder, so it is still inserting into the block that the condition
went into. Also note that it is creating a branch to the "then" block and the
"else" block, even though the "else" block isn't inserted into the function yet.
This is all ok: it is the standard way that LLVM supports forward
@@ -907,7 +907,7 @@ if/then/else and for expressions.. To build this example, use:
#include "llvm/Analysis/Verifier.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/LLVMBuilder.h"
+#include "llvm/Support/IRBuilder.h"
#include &lt;cstdio&gt;
#include &lt;string&gt;
#include &lt;map&gt;
@@ -1352,7 +1352,7 @@ static PrototypeAST *ParseExtern() {
//===----------------------------------------------------------------------===//
static Module *TheModule;
-static LLVMFoldingBuilder Builder;
+static IRBuilder Builder;
static std::map&lt;std::string, Value*&gt; NamedValues;
static FunctionPassManager *TheFPM;
OpenPOWER on IntegriCloud