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

Use explicit names for elements creating using Builder::make_ methods #6809

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented Aug 5, 2024

In all the cases I could find the make_xx helper method were called with meaningful names that are useful in the name section.

See #6496 and #6806

In all the cases I could find the `make_xx` helper method were
called with meaningful names that are useful in the name section.

See #6496 and #6806
@sbc100 sbc100 requested a review from kripken August 5, 2024 18:10
@@ -4968,7 +4968,6 @@ BinaryenTableRef BinaryenAddTable(BinaryenModuleRef module,
BinaryenIndex maximum,
BinaryenType tableType) {
auto table = Builder::makeTable(name, Type(tableType), initial, maximum);
table->hasExplicitName = true;
Copy link
Member

Choose a reason for hiding this comment

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

Why change this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it is no longer needed since Builder::makeTable now uses explicit name by default.

@sbc100
Copy link
Member Author

sbc100 commented Aug 5, 2024

Turns out this change isn't so simple. Marking as WIP for now.

@sbc100 sbc100 marked this pull request as draft August 5, 2024 21:20
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