diff options
Diffstat (limited to 'x86/TargetPrinter.ml')
-rw-r--r-- | x86/TargetPrinter.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/x86/TargetPrinter.ml b/x86/TargetPrinter.ml index 3171847c..12ef6472 100644 --- a/x86/TargetPrinter.ml +++ b/x86/TargetPrinter.ml @@ -17,6 +17,7 @@ open Camlcoq open Sections open AST open Asm +open AisAnnot open PrintAsmaux open Fileinfo @@ -792,15 +793,14 @@ module Target(System: SYSTEM):TARGET = | Pbuiltin(ef, args, res) -> begin match ef with | EF_annot(kind,txt, targs) -> - let annot = begin match (P.to_int kind) with - | 1 -> annot_text preg_annot "sp" (camlstring_of_coqstring txt) args + | 1 -> let annot = annot_text preg_annot "sp" (camlstring_of_coqstring txt) args in + fprintf oc "%s annotation: %S\n" comment annot | 2 -> let lbl = new_label () in fprintf oc "%a: " label lbl; - ais_annot_text lbl preg_annot "r1" (camlstring_of_coqstring txt) args + add_ais_annot lbl preg_annot "r1" (camlstring_of_coqstring txt) args | _ -> assert false - end in - fprintf oc "%s annotation: %S\n" comment annot + end | EF_debug(kind, txt, targs) -> print_debug_info comment print_file_line preg_annot "%esp" oc (P.to_int kind) (extern_atom txt) args |