diff options
author | Mark Shinwell <mshinwell@gmail.com> | 2016-07-06 11:44:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-06 11:44:00 +0100 |
commit | c843ca0691235ef3da97aea090601a41195028e0 (patch) | |
tree | 26fc8221d1b3d377cc440f8604a7b579c3e6c243 /asmcomp/printmach.ml | |
parent | 3305a152c893060d6a551d0e70665e4e02eaf1fd (diff) | |
download | ocaml-c843ca0691235ef3da97aea090601a41195028e0.tar.gz |
Labels after calls, call GC points and checkbound points (again) (#660)
Diffstat (limited to 'asmcomp/printmach.ml')
-rw-r--r-- | asmcomp/printmach.ml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/asmcomp/printmach.ml b/asmcomp/printmach.ml index 82b95a8b49..a51a4c12f4 100644 --- a/asmcomp/printmach.ml +++ b/asmcomp/printmach.ml @@ -87,7 +87,7 @@ let intop = function | Ilsr -> " >>u " | Iasr -> " >>s " | Icomp cmp -> intcomp cmp - | Icheckbound -> " check > " + | Icheckbound _ -> " check > " let test tst ppf arg = match tst with @@ -114,12 +114,12 @@ let operation op arg ppf res = | Iconst_blockheader n -> fprintf ppf "%s" (Nativeint.to_string n) | Iconst_float f -> fprintf ppf "%F" (Int64.float_of_bits f) | Iconst_symbol s -> fprintf ppf "\"%s\"" s - | Icall_ind -> fprintf ppf "call %a" regs arg - | Icall_imm lbl -> fprintf ppf "call \"%s\" %a" lbl regs arg - | Itailcall_ind -> fprintf ppf "tailcall %a" regs arg - | Itailcall_imm lbl -> fprintf ppf "tailcall \"%s\" %a" lbl regs arg - | Iextcall(lbl, alloc) -> - fprintf ppf "extcall \"%s\" %a%s" lbl regs arg + | Icall_ind _ -> fprintf ppf "call %a" regs arg + | Icall_imm { func; _ } -> fprintf ppf "call \"%s\" %a" func regs arg + | Itailcall_ind _ -> fprintf ppf "tailcall %a" regs arg + | Itailcall_imm { func; } -> fprintf ppf "tailcall \"%s\" %a" func regs arg + | Iextcall { func; alloc; _ } -> + fprintf ppf "extcall \"%s\" %a%s" func regs arg (if alloc then "" else " (noalloc)") | Istackoffset n -> fprintf ppf "offset stack %i" n @@ -133,7 +133,7 @@ let operation op arg ppf res = (Array.sub arg 1 (Array.length arg - 1)) reg arg.(0) (if is_assign then "(assign)" else "(init)") - | Ialloc n -> fprintf ppf "alloc %i" n + | Ialloc { words = n; _ } -> fprintf ppf "alloc %i" n | Iintop(op) -> fprintf ppf "%a%s%a" reg arg.(0) (intop op) reg arg.(1) | Iintop_imm(op, n) -> fprintf ppf "%a%s%i" reg arg.(0) (intop op) n | Inegf -> fprintf ppf "-f %a" reg arg.(0) |