diff options
| author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-08-19 17:32:38 +0000 |
|---|---|---|
| committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-08-19 17:32:38 +0000 |
| commit | ed1bd8a8ef79a85223e9f2d9088f9c5aba61032f (patch) | |
| tree | 10bf4665353aa2e6c812b7294a89e80432933df6 /docs/tutorial/OCamlLangImpl7.html | |
| parent | 93ac6ab49c58d81cc332c9a9af74f0442d4acaa8 (diff) | |
| download | external_llvm-ed1bd8a8ef79a85223e9f2d9088f9c5aba61032f.zip external_llvm-ed1bd8a8ef79a85223e9f2d9088f9c5aba61032f.tar.gz external_llvm-ed1bd8a8ef79a85223e9f2d9088f9c5aba61032f.tar.bz2 | |
Update the ocaml docs to work with LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/OCamlLangImpl7.html')
| -rw-r--r-- | docs/tutorial/OCamlLangImpl7.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/tutorial/OCamlLangImpl7.html b/docs/tutorial/OCamlLangImpl7.html index abda440..dab3059 100644 --- a/docs/tutorial/OCamlLangImpl7.html +++ b/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 |
