aboutsummaryrefslogtreecommitdiffstats
path: root/arm/TargetPrinter.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-07-19 12:39:17 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2017-07-19 12:39:17 +0200
commit32d25a371fc0e1aaea2a94459363b21e9841d637 (patch)
treeb96b4c7555eb3fbe0190caaae79010e27c731123 /arm/TargetPrinter.ml
parent2a78e5fd2f2c70fdd20048b3e23162ad97b2b2b6 (diff)
downloadcompcert-kvx-32d25a371fc0e1aaea2a94459363b21e9841d637.tar.gz
compcert-kvx-32d25a371fc0e1aaea2a94459363b21e9841d637.zip
Print_annot should produce a string.
Diffstat (limited to 'arm/TargetPrinter.ml')
-rw-r--r--arm/TargetPrinter.ml11
1 files changed, 8 insertions, 3 deletions
diff --git a/arm/TargetPrinter.ml b/arm/TargetPrinter.ml
index 6f1cb6c1..0626a371 100644
--- a/arm/TargetPrinter.ml
+++ b/arm/TargetPrinter.ml
@@ -81,6 +81,11 @@ struct
| FR r -> freg oc r
| _ -> assert false
+ let preg_annot = function
+ | IR r -> int_reg_name r
+ | FR r -> float_reg_name r
+ | _ -> assert false
+
let condition_name = function
| TCeq -> "eq"
| TCne -> "ne"
@@ -730,11 +735,11 @@ struct
| Pbuiltin(ef, args, res) ->
begin match ef with
| EF_annot(txt, targs) ->
- fprintf oc "%s annotation: " comment;
- print_annot_text preg "sp" oc (camlstring_of_coqstring txt) args;
+ fprintf oc "%s annotation: %s\n" comment
+ (annot_text preg_annot "sp" (camlstring_of_coqstring txt) args);
0
| EF_debug(kind, txt, targs) ->
- print_debug_info comment print_file_line preg "sp" oc
+ print_debug_info comment print_file_line preg_annot "sp" oc
(P.to_int kind) (extern_atom txt) args;
0
| EF_inline_asm(txt, sg, clob) ->