[WebAssembly] Update to match llvm changes to TABLE relocations
authorSam Clegg <sbc@chromium.org>
Tue, 23 Jan 2018 01:25:56 +0000 (01:25 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 23 Jan 2018 01:25:56 +0000 (01:25 +0000)
commitab604a9882ab0a97b40f073d49af24b8ed5eec3b
tree50fbf1707f5f51fb518a743cf3bb7eb5fd78f50c
parentac904d0e3a94828f5e7dd2f618bfc4c8ab699bd5
[WebAssembly] Update to match llvm changes to TABLE relocations

TABLE relocations now store the function that is being refered
to indirectly.

See rL323165.

Also extend the call-indirect.ll a little.

Based on a patch by Nicholas Wilson!

llvm-svn: 323168
lld/test/wasm/Inputs/call-indirect.ll
lld/test/wasm/call-indirect.ll
lld/test/wasm/locals-duplicate.test
lld/test/wasm/relocatable.ll
lld/wasm/InputChunks.cpp
lld/wasm/InputChunks.h
lld/wasm/InputFiles.cpp
lld/wasm/InputFiles.h
lld/wasm/Writer.cpp