This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Preserve function signatures during LTO
ClosedPublic

Authored by sbc100 on Aug 14 2018, 9:43 AM.

Details

Summary

With LTO when and undefined function (with a known signature)
in replaced by a defined bitcode function we were loosing the
signature information (since bitcode functions don't have
signatures).

With this change we preserve the original signature from the
undefined function and verify that the post LTO compiled
function has the correct signature.

This change improves the error handling in the case where
there is a signature mismatch with a function defined in
a bitcode file.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Aug 14 2018, 9:43 AM
sbc100 updated this revision to Diff 160653.Aug 14 2018, 11:38 AM
  • fix type mismatch
  • add test
ruiu accepted this revision.Sep 27 2018, 7:02 PM

LGTM, sorry.

This revision is now accepted and ready to land.Sep 27 2018, 7:02 PM
This revision was automatically updated to reflect the committed changes.