Commit dfa842c4 authored by Tanya Lattner's avatar Tanya Lattner
Browse files

Merge 81799 from mainline.

Make sure to initialize the fpm in the ocaml tutorial.

llvm-svn: 81974
parent 2622b3d9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -206,6 +206,8 @@ add a set of optimizations to run. The code looks like this:</p>
  (* 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>
@@ -992,6 +994,8 @@ let main () =
  (* 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;

+2 −0
Original line number Diff line number Diff line
@@ -1519,6 +1519,8 @@ let main () =
  (* 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;

+2 −0
Original line number Diff line number Diff line
@@ -1518,6 +1518,8 @@ let main () =
  (* 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;

+2 −0
Original line number Diff line number Diff line
@@ -1852,6 +1852,8 @@ let main () =
  (* 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;