diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-09-14 21:54:15 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-09-14 21:54:15 +0000 |
commit | c8a18f97bb4c57b4c856c472b1b07c2d883a4d6e (patch) | |
tree | d333ecea2036a7b0a6bb0a03788c4abd7afdd3b7 /llvm/docs/tutorial | |
parent | 09d3362bf57db66780eed3a8f19fdcccae354f57 (diff) | |
download | bcm5719-llvm-c8a18f97bb4c57b4c856c472b1b07c2d883a4d6e.tar.gz bcm5719-llvm-c8a18f97bb4c57b4c856c472b1b07c2d883a4d6e.zip |
Make sure to initialize the fpm in the ocaml tutorial.
llvm-svn: 81799
Diffstat (limited to 'llvm/docs/tutorial')
-rw-r--r-- | llvm/docs/tutorial/OCamlLangImpl4.html | 4 | ||||
-rw-r--r-- | llvm/docs/tutorial/OCamlLangImpl5.html | 2 | ||||
-rw-r--r-- | llvm/docs/tutorial/OCamlLangImpl6.html | 2 | ||||
-rw-r--r-- | llvm/docs/tutorial/OCamlLangImpl7.html | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/llvm/docs/tutorial/OCamlLangImpl4.html b/llvm/docs/tutorial/OCamlLangImpl4.html index ec3c20bc6bf..7cd54d9beaf 100644 --- a/llvm/docs/tutorial/OCamlLangImpl4.html +++ b/llvm/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/llvm/docs/tutorial/OCamlLangImpl5.html b/llvm/docs/tutorial/OCamlLangImpl5.html index 6c77e9fa45e..bd22c5e229b 100644 --- a/llvm/docs/tutorial/OCamlLangImpl5.html +++ b/llvm/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/llvm/docs/tutorial/OCamlLangImpl6.html b/llvm/docs/tutorial/OCamlLangImpl6.html index 8c6996f2057..57131883ada 100644 --- a/llvm/docs/tutorial/OCamlLangImpl6.html +++ b/llvm/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/llvm/docs/tutorial/OCamlLangImpl7.html b/llvm/docs/tutorial/OCamlLangImpl7.html index dab3059c89a..411e040b93d 100644 --- a/llvm/docs/tutorial/OCamlLangImpl7.html +++ b/llvm/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; |