[PATCH] D48394: [WebAssembly] Error if mismatched function signture is includes in final output

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 14:13:26 PDT 2018


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff.

During symbol resolution we emit warnings for function signature
mismatched.  During GC, if any mismatched symbol is marked as live
then we generate an error.

This means that we only bail out if the mitmatch would occur in the
final output.  i.e. if we would generate an invalid wasm file.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D48394

Files:
  test/wasm/Inputs/ret32.ll
  test/wasm/Inputs/ret64.ll
  test/wasm/fatal-warnings.ll
  test/wasm/load-undefined.test
  test/wasm/signature-mismatch-weak.ll
  test/wasm/signature-mismatch.ll
  wasm/Driver.cpp
  wasm/MarkLive.cpp
  wasm/SymbolTable.cpp
  wasm/Symbols.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48394.152164.patch
Type: text/x-patch
Size: 10630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/4134105b/attachment.bin>


More information about the llvm-commits mailing list