This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Improve weak alias tests cases
ClosedPublic

Authored by sbc100 on Dec 20 2017, 12:03 PM.

Details

Summary

Based on: https://github.com/WebAssembly/tool-conventions/issues/34

Currently both these tests exhibit some incorrect behavior.
Namly that call_alias will always end up calling direct_fn even
when the alias is overridden.

Also, calling alias_fn via the indirect function table is currently
broken (see TODO comment).

Event Timeline

sbc100 created this revision.Dec 20 2017, 12:03 PM
sbc100 updated this revision to Diff 127773.Dec 20 2017, 12:24 PM
  • more test
sbc100 updated this revision to Diff 127788.Dec 20 2017, 2:30 PM
  • update test
sbc100 added a reviewer: ncw.Dec 20 2017, 2:31 PM
sbc100 edited the summary of this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Review.Dec 20 2017, 6:30 PM
This revision was automatically updated to reflect the committed changes.
ncw added a comment.Dec 21 2017, 3:06 AM

I haven't looked into this in detail (I'd need to hand-inspect the wasm-dis output to be sure that the obj2yaml output is actually correct). But I'm sure you've done that! Fine by me.