This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Symbol changes #4e: remove object file name section
ClosedPublic

Authored by ncw on Jan 23 2018, 8:41 AM.

Details

Summary

As requested, here's another commit to remove the "name" section from llc and clang object files.

LLD is unaffected, no changes needed there. LLD continues to write out a name section, using the symbol names.

Resolves issue: https://github.com/WebAssembly/tool-conventions/issues/37

Diff Detail

Repository
rL LLVM

Event Timeline

ncw created this revision.Jan 23 2018, 8:41 AM
ncw edited the summary of this revision. (Show Details)Jan 23 2018, 9:42 AM
ncw added a reviewer: sunfish.
sunfish accepted this revision.Jan 23 2018, 9:56 AM

Makes sense. With the direction all the symbol-table things are headed, using the name section as a kind of secondary symbol name is indeed confusing.

In the future, we may add the ability to produce wasm files with the name section containing demangled symbol names, which is more of the intended use for the name section, however we don't need to figure that out now.

This revision is now accepted and ready to land.Jan 23 2018, 9:56 AM
sbc100 accepted this revision.Jan 23 2018, 10:19 AM
This revision was automatically updated to reflect the committed changes.