Skip to content

Deprecate -annot#2141

Merged
nojb merged 14 commits intoocaml:trunkfrom
nojb:cmt2annot
Mar 13, 2020
Merged

Deprecate -annot#2141
nojb merged 14 commits intoocaml:trunkfrom
nojb:cmt2annot

Conversation

@nojb
Copy link
Copy Markdown
Contributor

@nojb nojb commented Nov 8, 2018

This PR:

  • Switches the generation of .annot files to be done from .cmt files (for this, it integrates the existing code from tools/cmt2annot.ml + a couple of bug fixes).
  • Removes all calls to Stypes from the typechecker.
  • Deprecates -annot.

The generated .annot files with the new approach are not identical, but the diff appears harmless. See e.g. the diff for the compiler codebase:

https://gist.github.com/nojb/2ce3a3c99bf3c587b0c8edd7430c6b37

One small regression is that the "old" code also recorded, when compiling bytecode, whether function calls where in tail position or not. As far as I can see, this is not done in the new code.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants