diff options
author | Pierre Letouzey <pierre.letouzey@inria.fr> | 2014-05-23 17:19:59 +0200 |
---|---|---|
committer | Pierre Letouzey <pierre.letouzey@inria.fr> | 2015-01-11 09:49:32 +0100 |
commit | d103a645df233dd40064e968fa8693607defa6a7 (patch) | |
tree | 34851e9f2db6029d83b5da3eb0d911082078e39d /plugins/extraction/modutil.mli | |
parent | e135bbb71b0e496c016aa89701bd4050cba49f5e (diff) |
Extraction: discard unnecessary code inside modules without signatures
In the case of an inner module without explicit signature,
(and not used later in a functor application), we now extract
only the needed items (used later or asked by the user),
instead of blindly extracting all fields as earlier.
Diffstat (limited to 'plugins/extraction/modutil.mli')
-rw-r--r-- | plugins/extraction/modutil.mli | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/extraction/modutil.mli b/plugins/extraction/modutil.mli index 88ead482b..d09820c37 100644 --- a/plugins/extraction/modutil.mli +++ b/plugins/extraction/modutil.mli @@ -23,6 +23,8 @@ val spec_iter_references : do_ref -> do_ref -> do_ref -> ml_spec -> unit val signature_of_structure : ml_structure -> ml_signature +val mtyp_of_mexpr : ml_module_expr -> ml_module_type + val msid_of_mt : ml_module_type -> module_path val get_decl_in_structure : global_reference -> ml_structure -> ml_decl |