-
Notifications
You must be signed in to change notification settings - Fork 639
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
Add functions to expose module import/export info #3330
Conversation
const char * module_name; | ||
const char * name; | ||
wasm_import_export_kind_t kind; | ||
bool linked; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I ask why linked
is required here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's useful for informational purposes, it allows me to tell when I've properly provided all of the necessary imports by checking that they show up as linked.
Modification doesn't cover if input is AOT file. Need something like https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/core/iwasm/common/wasm_runtime_common.c#L1345C4-L1345C63 to handle both .wasm and .aot |
Should address suggestions from @lum1n0us.
Thanks for the review @lum1n0us, I made a new commit that I think should address all of your comments. Please let me know if there's anything else. |
@bnason-nf I added some comments which are mainly for coding styles, could you help make changes again? Thanks. |
Thanks @wenyongh, I think I addressed all of your suggestions. Please let me know if I missed anything. |
Just out of curiosity, is there a reason that clang-format is explicitly turned off in wasm-export.h? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks a lot, it looks much better now, I merged the PR.
There are some long line comments in wasm_export.h and |
) Resolves bytecodealliance#3329. Signed-off-by: victoryang00 <[email protected]>
) Resolves bytecodealliance#3329. Signed-off-by: victoryang00 <[email protected]>
Resolves #3329.