]> granicus.if.org Git - llvm/commit
[WebAssembly] Fix getSymbolValue for exported globals
authorSam Clegg <sbc@chromium.org>
Fri, 1 Sep 2017 17:24:19 +0000 (17:24 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 1 Sep 2017 17:24:19 +0000 (17:24 +0000)
commite38fd9fa362002e4d5ef0eb9ee23916f6f62b4b6
treeb153871cfb23d3956361df5ebef15f6c5d89d391
parent8cb6b3ebf8480fe273085b39396b852fa9302041
[WebAssembly] Fix getSymbolValue for exported globals

The code wasn't previously taking into account that the
global index space is not same as the into in the Globals
array since the latter does not include imported globals.

This fixes the WebAssembly waterfall failures.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/WasmObjectFile.cpp
test/tools/llvm-nm/wasm/exports.yaml
test/tools/llvm-nm/wasm/imports.yaml
test/tools/llvm-nm/wasm/weak-symbols.yaml