[lld][WebAssembly] Fix spurious signature mismatch warnings
authorSam Clegg <sbc@chromium.org>
Fri, 30 Aug 2019 19:50:59 +0000 (19:50 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 30 Aug 2019 19:50:59 +0000 (19:50 +0000)
commitfecfc5920aeb163822ca0213206a34473109a86d
tree025eadb3109994f9d8b8d5824848e829986bdc8f
parent6ccd67320631e7ab26d6746bdc77eabfa03730e0
[lld][WebAssembly] Fix spurious signature mismatch warnings

Summary:
This a follow up on: https://reviews.llvm.org/D62153

Handle the case where there are multiple object files that contain
undefined references to the same function.  We only generate a function
variant if the existing symbol is directly called.

See: https://github.com/emscripten-core/emscripten/issues/8995

Subscribers: dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Tags: #llvm

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

llvm-svn: 370509
lld/test/wasm/signature-mismatch-unknown.ll
lld/wasm/SymbolTable.cpp