aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/PrintAsm.ml6
-rw-r--r--backend/PrintAsmaux.ml4
2 files changed, 4 insertions, 6 deletions
diff --git a/backend/PrintAsm.ml b/backend/PrintAsm.ml
index 532de044..fb03d96b 100644
--- a/backend/PrintAsm.ml
+++ b/backend/PrintAsm.ml
@@ -44,8 +44,7 @@ module Printer(Target:TARGET) =
Target.cfi_startproc oc;
Target.print_instructions oc fn;
Target.cfi_endproc oc;
- if Target.print_fun_info then
- print_fun_info oc name;
+ Target.print_fun_info oc name;
Target.emit_constants oc lit;
Target.print_jumptable oc jmptbl
@@ -78,8 +77,7 @@ module Printer(Target:TARGET) =
fprintf oc " .global %a\n" symbol name;
fprintf oc "%a:\n" symbol name;
print_init_data oc name v.gvar_init;
- if Target.print_var_info then
- print_var_info oc name;
+ Target.print_var_info oc name;
end else
let sz =
match v.gvar_init with [Init_space sz] -> sz | _ -> assert false in
diff --git a/backend/PrintAsmaux.ml b/backend/PrintAsmaux.ml
index 3f619d84..f3d95f87 100644
--- a/backend/PrintAsmaux.ml
+++ b/backend/PrintAsmaux.ml
@@ -26,8 +26,8 @@ module type TARGET =
val print_epilogue: out_channel -> unit
val print_align: out_channel -> int -> unit
val print_comm_symb: out_channel -> Z.t -> P.t -> int -> unit
- val print_var_info: bool
- val print_fun_info: bool
+ val print_var_info: out_channel -> P.t -> unit
+ val print_fun_info: out_channel -> P.t -> unit
val print_init: out_channel -> init_data -> unit
val reset_constants: unit -> unit
val get_section_names: P.t -> section_name * section_name * section_name