diff options
author | Tanya Lattner <tonic@nondot.org> | 2009-09-16 01:05:19 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2009-09-16 01:05:19 +0000 |
commit | 544e5bc05e934055b8692578a5836d870920c1bb (patch) | |
tree | 420e296599cb731b5623ccd368ea0992f845dfca | |
parent | 08b3db33e1a5cdfcfe2bfb01838bc6331bf8cffb (diff) | |
download | llvm-544e5bc05e934055b8692578a5836d870920c1bb.tar.gz |
Merge 81799 from mainline.
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
-rw-r--r-- | docs/tutorial/OCamlLangImpl4.html | 4 | ||||
-rw-r--r-- | docs/tutorial/OCamlLangImpl5.html | 2 | ||||
-rw-r--r-- | docs/tutorial/OCamlLangImpl6.html | 2 | ||||
-rw-r--r-- | docs/tutorial/OCamlLangImpl7.html | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/docs/tutorial/OCamlLangImpl4.html b/docs/tutorial/OCamlLangImpl4.html index ec3c20bc6bfa..7cd54d9beafd 100644 --- a/docs/tutorial/OCamlLangImpl4.html +++ b/docs/tutorial/OCamlLangImpl4.html @@ -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; diff --git a/docs/tutorial/OCamlLangImpl5.html b/docs/tutorial/OCamlLangImpl5.html index 6c77e9fa45e6..bd22c5e229b4 100644 --- a/docs/tutorial/OCamlLangImpl5.html +++ b/docs/tutorial/OCamlLangImpl5.html @@ -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; diff --git a/docs/tutorial/OCamlLangImpl6.html b/docs/tutorial/OCamlLangImpl6.html index 8c6996f20573..57131883ada5 100644 --- a/docs/tutorial/OCamlLangImpl6.html +++ b/docs/tutorial/OCamlLangImpl6.html @@ -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; diff --git a/docs/tutorial/OCamlLangImpl7.html b/docs/tutorial/OCamlLangImpl7.html index dab3059c89a4..411e040b93d2 100644 --- a/docs/tutorial/OCamlLangImpl7.html +++ b/docs/tutorial/OCamlLangImpl7.html @@ -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; |