Update the ocaml docs to work with LLVMContext.
[oota-llvm.git] / docs / tutorial / OCamlLangImpl6.html
index 780cab819142a70c29619fae6bb500dd9f8af810..8c6996f20573dfd6306aecd5c8377705ad15edfe 100644 (file)
@@ -1173,8 +1173,9 @@ open Llvm
 
 exception Error of string
 
 
 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
 
 let rec codegen_expr = function
 let named_values:(string, llvalue) Hashtbl.t = Hashtbl.create 10
 
 let rec codegen_expr = function