diff options
| author | Alain Frisch <alain@frisch.fr> | 2011-12-21 16:52:10 +0000 |
|---|---|---|
| committer | Alain Frisch <alain@frisch.fr> | 2011-12-21 16:52:10 +0000 |
| commit | 5686436fc64ea7ff3328d0078257f439ca27129b (patch) | |
| tree | f83d57e15d0c72f1abdb0a494bedf059a5afbac7 /driver/compile.ml | |
| parent | 1061c39aac71ab7aaae7da059071487ddcddb5c8 (diff) | |
| download | ocaml-5686436fc64ea7ff3328d0078257f439ca27129b.tar.gz | |
Undoing previous commit.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/unused_declarations@11929 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'driver/compile.ml')
| -rw-r--r-- | driver/compile.ml | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/driver/compile.ml b/driver/compile.ml index 4a75b9d185..33a198ed83 100644 --- a/driver/compile.ml +++ b/driver/compile.ml @@ -83,12 +83,7 @@ let interface ppf sourcefile outputprefix = let ast = Pparse.file ppf inputfile Parse.interface ast_intf_magic_number in if !Clflags.dump_parsetree then fprintf ppf "%a@." Printast.interface ast; - Typecore.reset_delayed_checks (); - let env = initial_env () in - let sg = Typemod.transl_signature env ast in - if Warnings.is_active (Warnings.Unused_value_declaration "") then - ignore (Includemod.signatures env sg sg); - Typecore.force_delayed_checks (); + let sg = Typemod.transl_signature (initial_env()) ast in if !Clflags.print_types then fprintf std_formatter "%a@." Printtyp.signature (Typemod.simplify_signature sg); |
