aboutsummaryrefslogtreecommitdiff
path: root/dev/vm_printers.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-05-14 13:58:23 +0200
committerGaëtan Gilbert2020-07-22 12:46:20 +0200
commit675b23dcf824d8a851881171a5628b239aad2201 (patch)
tree90b800d6524b93c23c0adc6e0a941db7f421cc79 /dev/vm_printers.ml
parente6d92a9765f84c80f8c6a102fe5480490c747313 (diff)
Remove redundant data from VM case switch.
No need to store the case_info, all the data is reconstructible from the context. Furthermore, this reconstruction is performed in a context where we already access the environment, so performance is not at stake. Hopefully this will also reduce the number of globally allocated VM values, since the switch representation now only depends on the shape of the inductive type.
Diffstat (limited to 'dev/vm_printers.ml')
-rw-r--r--dev/vm_printers.ml5
1 files changed, 1 insertions, 4 deletions
diff --git a/dev/vm_printers.ml b/dev/vm_printers.ml
index aa650fbdc8..ac4972ed0d 100644
--- a/dev/vm_printers.ml
+++ b/dev/vm_printers.ml
@@ -1,6 +1,5 @@
open Format
open Term
-open Constr
open Names
open Cemitcodes
open Vmvalues
@@ -8,9 +7,7 @@ open Vmvalues
let ppripos (ri,pos) =
(match ri with
| Reloc_annot a ->
- let sp,i = a.ci.ci_ind in
- print_string
- ("annot : MutInd("^(MutInd.to_string sp)^","^(string_of_int i)^")\n")
+ print_string "switch\n"
| Reloc_const _ ->
print_string "structured constant\n"
| Reloc_getglobal kn ->