This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add support for named globals in the object format.
ClosedPublic

Authored by sbc100 on Nov 18 2020, 11:50 PM.

Diff Detail

Event Timeline

sbc100 created this revision.Nov 18 2020, 11:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2020, 11:50 PM
sbc100 requested review of this revision.Nov 18 2020, 11:50 PM
sbc100 updated this revision to Diff 306322.Nov 18 2020, 11:55 PM
  • rename var
tlively accepted this revision.Nov 19 2020, 12:04 AM

Nice! This will be helpful for reading disassembled modules. In a future where we have a clang extension allowing users to define their own WebAssembly globals from C/C++, would it be easy to extend this to support names for those arbitrary globals as well?

This revision is now accepted and ready to land.Nov 19 2020, 12:04 AM

Nice! This will be helpful for reading disassembled modules. In a future where we have a clang extension allowing users to define their own WebAssembly globals from C/C++, would it be easy to extend this to support names for those arbitrary globals as well?

Yup. Anything that has a name in the symbol table will end up with a name in the name section.

This revision was landed with ongoing or failed builds.Nov 19 2020, 12:36 AM
This revision was automatically updated to reflect the committed changes.