aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2018-02-23 23:28:44 +0100
committerGravatar Maxime Dénès <mail@maximedenes.fr>2018-06-10 19:54:10 +0200
commit375a47bab8395695a4f74e19691854d2d0248045 (patch)
tree088fedcdcab698d588e7b9fb0588d939923d5bc4 /dev
parent51a56b1aacb516af513de64c00dd7e796f661484 (diff)
[VM] Remove projection names from structured constants.
It was actually a hack since those names are never used to represent values, only to be passed as arguments to bytecode instructions. So instead of reusing the structured_constant type, we follow the same pattern as switch annotations.
Diffstat (limited to 'dev')
-rw-r--r--dev/vm_printers.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev/vm_printers.ml b/dev/vm_printers.ml
index 16917586f..7589e5348 100644
--- a/dev/vm_printers.ml
+++ b/dev/vm_printers.ml
@@ -15,7 +15,10 @@ let ppripos (ri,pos) =
| Reloc_const _ ->
print_string "structured constant\n"
| Reloc_getglobal kn ->
- print_string ("getglob "^(Constant.to_string kn)^"\n"));
+ print_string ("getglob "^(Constant.to_string kn)^"\n")
+ | Reloc_proj_name p ->
+ print_string ("proj "^(Constant.to_string p)^"\n")
+ );
print_flush ()
let print_vfix () = print_string "vfix"