aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-02-18 13:06:58 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2015-02-18 13:06:58 +0100
commit71260eff997f5d3c25d9ccda92b8176c893be26d (patch)
tree8626b46263b5bbae1a034c923a58e2211c2359a3 /backend
parent8677f50de8515bd83221e6a3d79b0f3d6dae4cbf (diff)
downloadcompcert-kvx-71260eff997f5d3c25d9ccda92b8176c893be26d.tar.gz
compcert-kvx-71260eff997f5d3c25d9ccda92b8176c893be26d.zip
Changed print_fun/var_info to be functions instead of booleans.
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