OSDN Git Service

[WebAssembly] MC: Use existing MCSymbol.Index field rather than inventing extra mapping
authorSam Clegg <sbc@chromium.org>
Tue, 8 May 2018 00:08:21 +0000 (00:08 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 8 May 2018 00:08:21 +0000 (00:08 +0000)
commit0af44d693926f651038282d7c823c8433cde8016
treee53b9c5d61de8e91127cf363c27a1edf69ccea0e
parentf21558f73af77f184eebf9f648da2d85d8a8f27e
[WebAssembly] MC: Use existing MCSymbol.Index field rather than inventing extra mapping

MCSymbol has getIndex/setIndex which are implementation defined
and on other platforms are used to store the symbol table
index.  It makes sense to use this rather than invent a new
mapping.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331705 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WasmObjectWriter.cpp