aboutsummaryrefslogtreecommitdiffstats
path: root/backend/PrintAsmaux.ml
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2020-02-25 10:45:53 +0100
committerCyril SIX <cyril.six@kalray.eu>2020-02-25 10:45:53 +0100
commitf78d61faf3db94ac1704ce0d11291211b5307629 (patch)
tree1b49a8f9ec74d1f185ef814812d8e73725458d97 /backend/PrintAsmaux.ml
parent424df9761ae4f3c9ce91ba785aef111bedd9125a (diff)
parent54b76c596048ac5b5a6a825d5d5595d4ea916a2e (diff)
downloadcompcert-kvx-f78d61faf3db94ac1704ce0d11291211b5307629.tar.gz
compcert-kvx-f78d61faf3db94ac1704ce0d11291211b5307629.zip
Merge branch 'mppa-work' into mppa-thread
Diffstat (limited to 'backend/PrintAsmaux.ml')
-rw-r--r--backend/PrintAsmaux.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/PrintAsmaux.ml b/backend/PrintAsmaux.ml
index 756e6c93..e14da87e 100644
--- a/backend/PrintAsmaux.ml
+++ b/backend/PrintAsmaux.ml
@@ -99,7 +99,7 @@ let exists_constants () =
let current_function_stacksize = ref 0l
let current_function_sig =
- ref { sig_args = []; sig_res = None; sig_cc = cc_default }
+ ref { sig_args = []; sig_res = Tvoid; sig_cc = cc_default }
(* Functions for printing of symbol names *)
let elf_symbol oc symb =
@@ -268,8 +268,8 @@ let re_asm_param_2 = Str.regexp "%\\([QR]?\\)\\([0-9]+\\)"
let print_inline_asm print_preg oc txt sg args res =
let (operands, ty_operands) =
match sg.sig_res with
- | None -> (args, sg.sig_args)
- | Some tres -> (builtin_arg_of_res res :: args, tres :: sg.sig_args) in
+ | Tvoid -> (args, sg.sig_args)
+ | tres -> (builtin_arg_of_res res :: args, proj_rettype tres :: sg.sig_args) in
let print_fragment = function
| Str.Text s ->
output_string oc s