[WebAssembly] Include function in wasm table when used in R_WASM_TABLE_INDEX_REL_SLEB
authorSam Clegg <sbc@chromium.org>
Fri, 5 Apr 2019 00:35:12 +0000 (00:35 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 5 Apr 2019 00:35:12 +0000 (00:35 +0000)
commita116d91ba2ad0a648d5359c4f6e79394a51729a6
tree6140d04f35877cf3c978607b0872d0303a3f8872
parent798e83b5d6853f0c2f68bb4b0785f6a075867a13
[WebAssembly] Include function in wasm table when used in R_WASM_TABLE_INDEX_REL_SLEB

This should have been part of rL357710 but was overlooked because
in our test code the function in question was also used in other
relocations that caused it to be added to the table anyway.

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

llvm-svn: 357737
lld/test/wasm/shared.ll
lld/wasm/Writer.cpp