summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/OCamlLangImpl7.html
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2009-08-19 17:32:38 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2009-08-19 17:32:38 +0000
commitbe86e9fd9af460a763f4bc615fffde6a96203b4d (patch)
tree604d5f7f71c25d3cb252bba13ef43771005f33b0 /llvm/docs/tutorial/OCamlLangImpl7.html
parent8ce532bfeaa440f6f3ed297838f03c7eeb4dda06 (diff)
downloadbcm5719-llvm-be86e9fd9af460a763f4bc615fffde6a96203b4d.tar.gz
bcm5719-llvm-be86e9fd9af460a763f4bc615fffde6a96203b4d.zip
Update the ocaml docs to work with LLVMContext.
llvm-svn: 79431
Diffstat (limited to 'llvm/docs/tutorial/OCamlLangImpl7.html')
-rw-r--r--llvm/docs/tutorial/OCamlLangImpl7.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/OCamlLangImpl7.html b/llvm/docs/tutorial/OCamlLangImpl7.html
index abda44011ca..dab3059c89a 100644
--- a/llvm/docs/tutorial/OCamlLangImpl7.html
+++ b/llvm/docs/tutorial/OCamlLangImpl7.html
@@ -1384,14 +1384,15 @@ open Llvm
exception Error of string
-let the_module = create_module "my cool jit"
-let builder = builder ()
+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
(* Create an alloca instruction in the entry block of the function. This
* is used for mutable variables etc. *)
let create_entry_block_alloca the_function var_name =
- let builder = builder_at (instr_begin (entry_block the_function)) in
+ let builder = builder_at context (instr_begin (entry_block the_function)) in
build_alloca double_type var_name builder
let rec codegen_expr = function
OpenPOWER on IntegriCloud