This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add ObjectYAML support for wasm name section
ClosedPublic

Authored by sbc100 on May 3 2017, 5:16 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.May 3 2017, 5:16 PM
sbc100 updated this revision to Diff 97754.May 3 2017, 5:20 PM
  • remove debugging
dschuff added inline comments.May 4 2017, 12:07 PM
include/llvm/ObjectYAML/WasmYAML.h
130 ↗(On Diff #97754)

The new name section format has subsections, each with a different type of name. So I'm not sure this is the best way to go in that direction, but I'm also not too familiar with yaml/obj either. Do you plan to add local names too?

sbc100 added inline comments.May 4 2017, 1:56 PM
include/llvm/ObjectYAML/WasmYAML.h
130 ↗(On Diff #97754)

Yes, I'm only doing enough to support the name section that the MC layer currently generates which is just Function names. I was planning on improving this later, but can do it sooner if you prefer. Otherwise I will add a TODO to make it clear.

sbc100 updated this revision to Diff 97874.May 4 2017, 1:56 PM
  • Merge remote-tracking branch 'origin/master' into yaml_name_section
  • add todo
dschuff accepted this revision.May 4 2017, 2:32 PM
dschuff added inline comments.
include/llvm/ObjectYAML/WasmYAML.h
130 ↗(On Diff #97754)

Oh, I was looking at the lib/Object code and thinking that it supported the extensible names section but I misread it. Yeah this is consistent with what we have now, and we just need to update everything.

This revision is now accepted and ready to land.May 4 2017, 2:32 PM
This revision was automatically updated to reflect the committed changes.