Skip to content
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

Deprecate JIT runtime override methods that take void * #6344

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

abadams
Copy link
Member

@abadams abadams commented Oct 22, 2021

Takes care of the TODO from the previous PR exposing JITUserContext.

This deprecates things like set_custom_error in favor of just mutating the jit_handlers() struct

Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for comments

src/JITModule.h Outdated
@@ -28,15 +28,113 @@ struct JITUserContext;

/** A set of custom overrides of runtime functions */
struct JITHandlers {
/** Set the function called to print messages from the runtime.
* If you are compiling statically, you can also just define your
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comments about "if you are compiling statically" are arguably confusing and/or misplaced here. I'd suggest replacing everything after the first sentence with something like "(Note that this applies only when jitting code; if you are doing ahead-of-time compilation, see [README_foo.md or wherever we document this, rather than trying to replicate that documentation here])".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@abadams abadams merged commit 86cb6c7 into master Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants