@@ -754,13 +754,13 @@ let subst_bound_in_blocks blocks s =
754754 if debug ()
755755 then (
756756 debug_print " @[<v>block before first subst: @," ;
757- Code.Print. block (fun _ _ -> " " ) pc block;
757+ Code.Print. block Format. err_formatter (fun _ _ -> " " ) pc block;
758758 debug_print " @]" );
759759 let res = Subst.Including_Binders. block s block in
760760 if debug ()
761761 then (
762762 debug_print " @[<v>block after first subst: @," ;
763- Code.Print. block (fun _ _ -> " " ) pc res;
763+ Code.Print. block Format. err_formatter (fun _ _ -> " " ) pc res;
764764 debug_print " @]" );
765765 res)
766766 blocks
@@ -861,6 +861,7 @@ let cps_transform ~live_vars ~flow_info ~cps_needed p =
861861 if Addr.Set. mem pc blocks_to_transform then Format. eprintf " CPS@." ;
862862 let block = Addr.Map. find pc blocks in
863863 Code.Print. block
864+ Format. err_formatter
864865 (fun _ xi -> Partial_cps_analysis. annot cps_needed xi)
865866 pc
866867 block)
@@ -1129,7 +1130,7 @@ let f ~flow_info ~live_vars p =
11291130 Var.Set. iter (fun v -> debug_print " %s,@ " (Var. to_string v)) cps_needed;
11301131 debug_print " @]@,@]" ;
11311132 debug_print " @[<v>After lambda lifting...@," ;
1132- Code.Print. program (fun _ _ -> " " ) p;
1133+ Code.Print. program Format. err_formatter (fun _ _ -> " " ) p;
11331134 debug_print " @]" );
11341135 p, cps_needed)
11351136 else
@@ -1143,6 +1144,6 @@ let f ~flow_info ~live_vars p =
11431144 if debug ()
11441145 then (
11451146 debug_print " @[<v>After CPS transform:@," ;
1146- Code.Print. program (fun _ _ -> " " ) p;
1147+ Code.Print. program Format. err_formatter (fun _ _ -> " " ) p;
11471148 debug_print " @]" );
11481149 p, trampolined_calls, in_cps
0 commit comments