HomePhabricator

[WebAssembly] Preserve function signatures during LTO

Authored by sbc100 on Sep 28 2018, 9:50 AM.

Description

[WebAssembly] Preserve function signatures during LTO

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.

Differential Revision: https://reviews.llvm.org/D50721

llvm-svn: 343340

Details

Committed
sbc100Sep 28 2018, 9:50 AM
Differential Revision
D50721: [WebAssembly] Preserve function signatures during LTO
Parents
rGe42a8ecf660b: [bindings/go] Add Go bindings for inline assembly
Branches
Unknown
Tags
Unknown