Skip to content

[XABT] Refactor Cecil usage out of TypeMapGenerator. #9996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented Apr 1, 2025

In preparation for future changes to the typemap generation process, this commit refactors the usage of Mono.Cecil out of the TypeMapGenerator class. (Part of the "move GenerateJavaStubs to linker steps" effort.)

This facilitates a future state where:

  • The Module[Debug|Release]Data entries are created from Mono.Cecil data in the LinkAssembliesNoShrink/ILLink step and persisted to disk.
  • The GenerateTypeMappings task reads the persisted information to generate the typemap.

This refactor could be done as part of that future change, but seemed like a smaller change that could be more easily reviewed and committed separately.

@jpobst jpobst changed the title [XABT] Break Cecil usage out of TypeMapGenerator. [XABT] Refactor Cecil usage out of TypeMapGenerator. Apr 2, 2025
@jpobst jpobst marked this pull request as ready for review April 2, 2025 03:03
@jpobst jpobst requested a review from grendello as a code owner April 2, 2025 03:03
@jpobst jpobst merged commit f565669 into main Apr 2, 2025
57 of 59 checks passed
@jpobst jpobst deleted the dev/jpobst/cecil-typemap-adapter branch April 2, 2025 17:23
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants