Make sure to initialize the fpm in the ocaml tutorial.
authorErick Tryzelaar <idadesub@users.sourceforge.net>
Mon, 14 Sep 2009 21:54:15 +0000 (21:54 +0000)
committerErick Tryzelaar <idadesub@users.sourceforge.net>
Mon, 14 Sep 2009 21:54:15 +0000 (21:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81799 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/OCamlLangImpl4.html
docs/tutorial/OCamlLangImpl5.html
docs/tutorial/OCamlLangImpl6.html
docs/tutorial/OCamlLangImpl7.html

index ec3c20bc6bfac6d08671ce25ffe8751dfcead110..7cd54d9beafd505f2bd39666c4aaa0b613249dd6 100644 (file)
@@ -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;
 
index 6c77e9fa45e6cd678620b0b2d7e326dee8bf1a07..bd22c5e229b4672aa564e584d3149a83a0ae6281 100644 (file)
@@ -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;
 
index 8c6996f20573dfd6306aecd5c8377705ad15edfe..57131883ada58ae83aa960899a4bd0471f057843 100644 (file)
@@ -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;
 
index dab3059c89a478a84b72f0181ee5bfd497749c1f..411e040b93d2cfaa111c68f3199ef6c01e055998 100644 (file)
@@ -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;