This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] MC: Don't generate extra types for weak alias
ClosedPublic

Authored by sbc100 on Jun 27 2017, 8:07 PM.

Details

Summary

Previously we were generated a void(void) function type
for a weak alias. Update the weak-alias test case to
catch this.

Also, fix type if relocation index to be unsigned inline
with the spec (Linking.md)

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Jun 27 2017, 8:07 PM
sbc100 added a subscriber: llvm-commits.
sbc100 edited the summary of this revision. (Show Details)Jun 27 2017, 8:10 PM
dschuff added inline comments.Jun 28 2017, 9:04 AM
lib/MC/WasmObjectWriter.cpp
962 ↗(On Diff #104344)

so a weak alias both isVariable() and isFunction()?

sbc100 added inline comments.Jul 3 2017, 3:32 PM
lib/MC/WasmObjectWriter.cpp
962 ↗(On Diff #104344)

Yup

sbc100 updated this revision to Diff 105118.Jul 3 2017, 3:35 PM
  • [WebAssembly] Fix types for address taken functions
sbc100 updated this revision to Diff 105119.Jul 3 2017, 3:38 PM
  • [WebAssembly] Fix types for address taken functions
sbc100 updated this revision to Diff 105120.Jul 3 2017, 3:45 PM
  • Revert
dschuff accepted this revision.Jul 5 2017, 11:36 AM
dschuff added inline comments.
lib/MC/WasmObjectWriter.cpp
962 ↗(On Diff #104344)

That's.... fun. Maybe should add a comment here about that.

This revision is now accepted and ready to land.Jul 5 2017, 11:36 AM
sbc100 updated this revision to Diff 105321.Jul 5 2017, 1:00 PM
  • add comment
This revision was automatically updated to reflect the committed changes.