This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Distinguish debug/symbol names in the Wasm structs. NFC
ClosedPublic

Authored by ncw on Mar 29 2018, 5:56 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

ncw created this revision.Mar 29 2018, 5:56 AM
sbc100 added inline comments.Mar 29 2018, 7:25 PM
lib/Object/WasmObjectFile.cpp
282 ↗(On Diff #140216)

Another way of saying it, maybe we can just drop these two lines of code?

ncw updated this revision to Diff 140769.Apr 3 2018, 6:26 AM

Updated: removed redundant comment

ncw marked an inline comment as done.Apr 3 2018, 6:26 AM
ncw added a comment.Apr 11 2018, 6:27 AM

There are no outstanding review comments, and this is blocking the already-approved D44440. Is it good to land?

One comment, otherwise lgtm

include/llvm/BinaryFormat/Wasm.h
104 ↗(On Diff #140769)

What do you think about dropping DebugName completely here? Since the name section is not really used in the object format right now this would make sense to me. If you really want to get to the debug names we have a method on the object to get them right?

sbc100 accepted this revision.Apr 11 2018, 12:38 PM
This revision is now accepted and ready to land.Apr 11 2018, 12:38 PM
This revision was automatically updated to reflect the committed changes.
ncw added inline comments.Apr 20 2018, 10:21 AM
include/llvm/BinaryFormat/Wasm.h
104 ↗(On Diff #140769)

I've kept it, since we don't entirely ignore it. When reading in a relocatable Wasm file, we will propagate the DebugName if it's specified, which I think is a useful feature to keep hold of for now.