Skip to content

Commit dfa842c

Browse files
committed
Merge 81799 from mainline.
Make sure to initialize the fpm in the ocaml tutorial. llvm-svn: 81974
1 parent 2622b3d commit dfa842c

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

llvm/docs/tutorial/OCamlLangImpl4.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@
206206
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
207207
add_cfg_simplification the_fpm;
208208

209+
ignore (PassManager.initialize the_fpm);
210+
209211
(* Run the main "interpreter loop" now. *)
210212
Toplevel.main_loop the_fpm the_execution_engine stream;
211213
</pre>
@@ -992,6 +994,8 @@
992994
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
993995
add_cfg_simplification the_fpm;
994996

997+
ignore (PassManager.initialize the_fpm);
998+
995999
(* Run the main "interpreter loop" now. *)
9961000
Toplevel.main_loop the_fpm the_execution_engine stream;
9971001

llvm/docs/tutorial/OCamlLangImpl5.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,8 @@
15191519
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
15201520
add_cfg_simplification the_fpm;
15211521

1522+
ignore (PassManager.initialize the_fpm);
1523+
15221524
(* Run the main "interpreter loop" now. *)
15231525
Toplevel.main_loop the_fpm the_execution_engine stream;
15241526

llvm/docs/tutorial/OCamlLangImpl6.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,8 @@
15181518
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
15191519
add_cfg_simplification the_fpm;
15201520

1521+
ignore (PassManager.initialize the_fpm);
1522+
15211523
(* Run the main "interpreter loop" now. *)
15221524
Toplevel.main_loop the_fpm the_execution_engine stream;
15231525

llvm/docs/tutorial/OCamlLangImpl7.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,6 +1852,8 @@
18521852
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
18531853
add_cfg_simplification the_fpm;
18541854

1855+
ignore (PassManager.initialize the_fpm);
1856+
18551857
(* Run the main "interpreter loop" now. *)
18561858
Toplevel.main_loop the_fpm the_execution_engine stream;
18571859

0 commit comments

Comments
 (0)