aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/cbytegen.ml
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-05-17 17:30:55 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-05-17 17:30:55 +0000
commit7386d0718f8c1e6fb47eea787d4287338f9e7060 (patch)
tree7aebb7f48f1d724596d14a8a147e7d68f7317626 /kernel/cbytegen.ml
parentcc5d102f0d9e3eef2e7b810c47002f26335601db (diff)
Modops: the strengthening functions can work without any env argument
The env was used for a particular case of Cbytegen.compile_constant_body, but we can actually guess that it will answer a particular BCallias con. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14134 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/cbytegen.ml')
-rw-r--r--kernel/cbytegen.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/cbytegen.ml b/kernel/cbytegen.ml
index bd12528c7..8da06f435 100644
--- a/kernel/cbytegen.ml
+++ b/kernel/cbytegen.ml
@@ -728,6 +728,9 @@ let compile_constant_body env = function
let to_patch = to_memory res in
BCdefined to_patch
+(* Shortcut of the previous function used during module strengthening *)
+
+let compile_alias kn = BCallias (constant_of_kn (canonical_con kn))
(* spiwack: additional function which allow different part of compilation of the
31-bit integers *)