OSDN Git Service

[WebAssembly] MC: Resolve aliases when creating provisional table entries
authorSam Clegg <sbc@chromium.org>
Wed, 31 Jan 2018 19:28:47 +0000 (19:28 +0000)
committerSam Clegg <sbc@chromium.org>
Wed, 31 Jan 2018 19:28:47 +0000 (19:28 +0000)
commit58528fe1742edd19c88de4850738d54252fe6348
tree034747b4db8c991eaab191289e08da4850562c76
parentb8d2903300c13d8fd151c8e5dc71017269617539
[WebAssembly] MC: Resolve aliases when creating provisional table entries

This change is useful for the upcoming addition of the symbol
table (D41954) since in that world aliases for given function
all share the same function index.

This change does not effect lld because it essentially ignores
the wasm "table".  The table exists only to the wasm objects
will validate and disassembly meaningfully.

Patch by Nicholas Wilson!

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323900 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WasmObjectWriter.cpp
test/MC/WebAssembly/weak-alias.ll