Skip to content

Commit

Permalink
Merge 81799 from mainline.
Browse files Browse the repository at this point in the history
Make sure to initialize the fpm in the ocaml tutorial.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@81974 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
tlattner committed Sep 16, 2009
1 parent 08b3db3 commit 544e5bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/tutorial/OCamlLangImpl4.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
add_cfg_simplification the_fpm;

ignore (PassManager.initialize the_fpm);

(* Run the main "interpreter loop" now. *)
Toplevel.main_loop the_fpm the_execution_engine stream;
</pre>
Expand Down Expand Up @@ -992,6 +994,8 @@
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
add_cfg_simplification the_fpm;

ignore (PassManager.initialize the_fpm);

(* Run the main "interpreter loop" now. *)
Toplevel.main_loop the_fpm the_execution_engine stream;

Expand Down
2 changes: 2 additions & 0 deletions docs/tutorial/OCamlLangImpl5.html
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,8 @@
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
add_cfg_simplification the_fpm;

ignore (PassManager.initialize the_fpm);

(* Run the main "interpreter loop" now. *)
Toplevel.main_loop the_fpm the_execution_engine stream;

Expand Down
2 changes: 2 additions & 0 deletions docs/tutorial/OCamlLangImpl6.html
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,8 @@
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
add_cfg_simplification the_fpm;

ignore (PassManager.initialize the_fpm);

(* Run the main "interpreter loop" now. *)
Toplevel.main_loop the_fpm the_execution_engine stream;

Expand Down
2 changes: 2 additions & 0 deletions docs/tutorial/OCamlLangImpl7.html
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,8 @@
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
add_cfg_simplification the_fpm;

ignore (PassManager.initialize the_fpm);

(* Run the main "interpreter loop" now. *)
Toplevel.main_loop the_fpm the_execution_engine stream;

Expand Down

0 comments on commit 544e5bc

Please sign in to comment.