summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 19:51:31 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 19:51:31 +0000
commite0d0948aeb111842d092d7df748b80bbeac2f671 (patch)
tree057edc6aabc533401dfe75881c9ff4b7d5ed9827 /llvm/docs/tutorial
parentd95638df44c201e85aebd16805fa03837e110fe2 (diff)
downloadbcm5719-llvm-e0d0948aeb111842d092d7df748b80bbeac2f671.tar.gz
bcm5719-llvm-e0d0948aeb111842d092d7df748b80bbeac2f671.zip
fix some out of date prose dating from the LLVMContext changes.
llvm-svn: 96500
Diffstat (limited to 'llvm/docs/tutorial')
-rw-r--r--llvm/docs/tutorial/LangImpl3.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl3.html b/llvm/docs/tutorial/LangImpl3.html
index 39ec62852a8..47cf62ecad6 100644
--- a/llvm/docs/tutorial/LangImpl3.html
+++ b/llvm/docs/tutorial/LangImpl3.html
@@ -170,7 +170,7 @@ internally (<tt>APFloat</tt> has the capability of holding floating point
constants of <em>A</em>rbitrary <em>P</em>recision). This code basically just
creates and returns a <tt>ConstantFP</tt>. Note that in the LLVM IR
that constants are all uniqued together and shared. For this reason, the API
-uses "the Context.get..." idiom instead of "new foo(..)" or "foo::Create(..)".</p>
+uses the "foo::get(...)" idiom instead of "new foo(..)" or "foo::Create(..)".</p>
<div class="doc_code">
<pre>
@@ -323,10 +323,10 @@ really talks about the external interface for a function (not the value computed
by an expression), it makes sense for it to return the LLVM Function it
corresponds to when codegen'd.</p>
-<p>The call to <tt>Context.get</tt> creates
+<p>The call to <tt>FunctionType::get</tt> creates
the <tt>FunctionType</tt> that should be used for a given Prototype. Since all
function arguments in Kaleidoscope are of type double, the first line creates
-a vector of "N" LLVM double types. It then uses the <tt>Context.get</tt>
+a vector of "N" LLVM double types. It then uses the <tt>Functiontype::get</tt>
method to create a function type that takes "N" doubles as arguments, returns
one double as a result, and that is not vararg (the false parameter indicates
this). Note that Types in LLVM are uniqued just like Constants are, so you
OpenPOWER on IntegriCloud