[EH] Rename option/pass names for new EH (exnref) #6592
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We settled on the name
WASM_EXNREFfor the new setting in Emscripten for the name for the new EH option.https://github.com/emscripten-core/emscripten/blob/2bc5e3156f07e603bc4f3580cf84c038ea99b2df/src/settings.js#L782-L786 "New EH" sounds vague and I'm not sure if "experimental" is really necessary anyway, given that the potential users of this option is aware that this is a new spec that has been adopted recently.
To make the option names consistent, this renames
--translate-to-eh(the option that only runs the translator) to--translate-to-exnref, and--experimental-new-ehto--emit-exnref(the option that runs the translator at the end of the whole pipeline), and renames the pass and variable names in the code accordingly as well.In case anyone is using the old option names (and also to make the Chromium CI pass), this does not delete the old options.