Update the ocaml docs to work with LLVMContext.
[oota-llvm.git] / docs / tutorial / OCamlLangImpl5.html
index dea243f00b8ee02bc7ad49f61173f266fb4707f1..6c77e9fa45e6cd678620b0b2d7e326dee8bf1a07 100644 (file)
@@ -1200,8 +1200,9 @@ 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
 
 let rec codegen_expr = function