[WebAssembly] Don't create MSSymbolWasm object for non-symbols
authorSam Clegg <sbc@chromium.org>
Thu, 21 Feb 2019 17:05:19 +0000 (17:05 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 21 Feb 2019 17:05:19 +0000 (17:05 +0000)
commit1ed3a0467c93817f669ece91bf008e3997e98230
treee2e9157ec48185ef4c04f018075fe8188f023493
parentddf91af5a67bef9ca7a6f14277420e8d2dc0c66e
[WebAssembly] Don't create MSSymbolWasm object for non-symbols

`__linear_memory` and `__indirect_function_table` are both generated
as imports in wasm object files but are actually symbols and don't
appear in any symbols table or relocation entry.  Indeed we
don't have any symbol type to meaningfully represent either of them.

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

llvm-svn: 354599
llvm/lib/MC/WasmObjectWriter.cpp