This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Only perform sanity checking of relocation targets in debug builds
ClosedPublic

Authored by sbc100 on May 4 2018, 2:30 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.May 4 2018, 2:30 PM
sbc100 added a reviewer: ruiu.May 4 2018, 2:30 PM
ruiu added a comment.May 4 2018, 2:52 PM

LGTM with this chagne.

wasm/InputChunks.cpp
60 ↗(On Diff #145299)

I think it is better to define this function whether it is debug or not make the number of moving things as small as possible. You can just not call it if not debug.

sbc100 updated this revision to Diff 145308.May 4 2018, 3:19 PM

feedback

sbc100 updated this revision to Diff 145324.May 4 2018, 4:42 PM
  • rebase
sbc100 edited the summary of this revision. (Show Details)May 4 2018, 4:44 PM
sbc100 edited the summary of this revision. (Show Details)

Also converted to a warning since it doesn't actually stop the linker doing its job if the input has something different at the existing location.

sbc100 updated this revision to Diff 145327.May 4 2018, 4:49 PM
  • Add an additional check for padded LEB
This revision was not accepted when it landed; it landed in state Needs Review.May 4 2018, 5:23 PM
This revision was automatically updated to reflect the committed changes.