diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-02-27 05:32:28 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-02-27 05:32:28 +0100 |
commit | a5e20ecb933a1dc12bae3e4eeb330e86f13832d8 (patch) | |
tree | 36e89d6f7f86825a537d0fdc192aaebd04efaf1b /backend/PrintAsmaux.ml | |
parent | e35365927d1289687aaff6d7ca5ebee1ac09d249 (diff) | |
parent | 5003b8d93c2a20821b776f7f74f5096a308a03cf (diff) | |
download | compcert-kvx-a5e20ecb933a1dc12bae3e4eeb330e86f13832d8.tar.gz compcert-kvx-a5e20ecb933a1dc12bae3e4eeb330e86f13832d8.zip |
Merge branch 'master' of https://github.com/AbsInt/CompCert into dm-cse2
Diffstat (limited to 'backend/PrintAsmaux.ml')
-rw-r--r-- | backend/PrintAsmaux.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/PrintAsmaux.ml b/backend/PrintAsmaux.ml index 8652b2c5..d82e6f84 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 |