aboutsummaryrefslogtreecommitdiff
path: root/docs/tutorial/OCamlLangImpl3.html
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2010-03-12 00:09:10 +0000
committerTanya Lattner <tonic@nondot.org>2010-03-12 00:09:10 +0000
commitbd437166bcfcf33ec21e521579b70ffad8b64bfc (patch)
tree0faba6b15ffaae67c4c467c9f4890b5a4b7d0226 /docs/tutorial/OCamlLangImpl3.html
parentc58daa2d510ac619b323e25e48ec42b5da7a3479 (diff)
Merge 97965 from mainline.
Update the OCaml Kaleidoscope tutorial. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_27@98311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/OCamlLangImpl3.html')
-rw-r--r--docs/tutorial/OCamlLangImpl3.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/tutorial/OCamlLangImpl3.html b/docs/tutorial/OCamlLangImpl3.html
index 0d69207db6..febd7f528c 100644
--- a/docs/tutorial/OCamlLangImpl3.html
+++ b/docs/tutorial/OCamlLangImpl3.html
@@ -98,6 +98,7 @@ exception Error of string
let the_module = create_module (global_context ()) "my cool jit"
let builder = builder (global_context ())
let named_values:(string, llvalue) Hashtbl.t = Hashtbl.create 10
+let double_type = double_type context
</pre>
</div>
@@ -389,7 +390,7 @@ that there is an LLVM Function object that is ready to go for us.</p>
<div class="doc_code">
<pre>
(* Create a new basic block to start insertion into. *)
- let bb = append_block "entry" the_function in
+ let bb = append_block context "entry" the_function in
position_at_end bb builder;
try
@@ -903,6 +904,7 @@ let context = global_context ()
let the_module = create_module context "my cool jit"
let builder = builder context
let named_values:(string, llvalue) Hashtbl.t = Hashtbl.create 10
+let double_type = double_type context
let rec codegen_expr = function
| Ast.Number n -&gt; const_float double_type n
@@ -974,7 +976,7 @@ let codegen_func = function
let the_function = codegen_proto proto in
(* Create a new basic block to start insertion into. *)
- let bb = append_block "entry" the_function in
+ let bb = append_block context "entry" the_function in
position_at_end bb builder;
try