aboutsummaryrefslogtreecommitdiff
path: root/interp/dumpglob.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-07-03 10:40:38 +0200
committerGaëtan Gilbert2019-07-03 17:05:29 +0200
commit1cc661d18f67f71a494b525b1f82fd9133ee5a3c (patch)
tree64da7fefd94e84f95c525f1d5fc8d63fd2e4421b /interp/dumpglob.ml
parentd76a3591e091bb0807fa974c4098b32db9e6d1ad (diff)
Move variable_secpath logic to dumpglob from constrintern
Diffstat (limited to 'interp/dumpglob.ml')
-rw-r--r--interp/dumpglob.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/interp/dumpglob.ml b/interp/dumpglob.ml
index 482303d935..dc6a1ae180 100644
--- a/interp/dumpglob.ml
+++ b/interp/dumpglob.ml
@@ -166,6 +166,9 @@ let dump_reference ?loc modpath ident ty =
let filepath = Names.DirPath.to_string (Lib.library_dp ()) in
dump_ref ?loc filepath modpath ident ty
+let dump_secvar ?loc id =
+ dump_reference ?loc "<>" (Libnames.string_of_qualid (Decls.variable_secpath id)) "var"
+
let dump_modref ?loc mp ty =
let (dp, l) = Lib.split_modpath mp in
let filepath = Names.DirPath.to_string dp in