This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add support for printing relocations with llvm-objdump
ClosedPublic

Authored by sbc100 on Jun 26 2017, 5:34 PM.

Details

Summary

This change also defines a relocatable wasm file as one that contains a
linking metadata section. This will allow tools such as lld to recognize
suitable input files.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Jun 26 2017, 5:34 PM
sbc100 edited the summary of this revision. (Show Details)Jun 26 2017, 5:36 PM
sbc100 added a reviewer: dschuff.
sbc100 added a subscriber: llvm-commits.
dschuff accepted this revision.Jun 27 2017, 10:11 AM

otherwise LGTM

tools/llvm-objdump/llvm-objdump.cpp
1085 ↗(On Diff #104051)
This revision is now accepted and ready to land.Jun 27 2017, 10:11 AM
dschuff added inline comments.Jun 27 2017, 10:12 AM
tools/llvm-objdump/llvm-objdump.cpp
1085 ↗(On Diff #104051)

BTW I do like that you're adding the error case on fall though; I guess you could pretty much just remove all the elses and leave the ifs, and get the same thing.

sbc100 updated this revision to Diff 104236.Jun 27 2017, 12:30 PM
  • No return after else
This revision was automatically updated to reflect the committed changes.