diff options
| author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-03-08 19:32:18 +0000 |
|---|---|---|
| committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-03-08 19:32:18 +0000 |
| commit | b8c11eb36b72daae0ee6089d00f592027a68d550 (patch) | |
| tree | bcc2127fab862d27c1d09d15cc0b14cae9754c43 /llvm/docs/tutorial/OCamlLangImpl3.html | |
| parent | 9cf2705a5d94d04a8f52b3d4dc3f58d05ec1b428 (diff) | |
| download | bcm5719-llvm-b8c11eb36b72daae0ee6089d00f592027a68d550.tar.gz bcm5719-llvm-b8c11eb36b72daae0ee6089d00f592027a68d550.zip | |
Update the OCaml Kaleidoscope tutorial.
llvm-svn: 97965
Diffstat (limited to 'llvm/docs/tutorial/OCamlLangImpl3.html')
| -rw-r--r-- | llvm/docs/tutorial/OCamlLangImpl3.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/OCamlLangImpl3.html b/llvm/docs/tutorial/OCamlLangImpl3.html index 0d69207db61..febd7f528cb 100644 --- a/llvm/docs/tutorial/OCamlLangImpl3.html +++ b/llvm/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 -> 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 |

