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.
Paths
| Differential D37384
[WebAssembly] Fix getSymbolValue for exported globals ClosedPublic Authored by sbc100 on Sep 1 2017, 10:18 AM.
Details Summary The code wasn't previously taking into account that the This fixes the WebAssembly waterfall failures.
Diff Detail
Event TimelineHerald added subscribers: aheejin, jgravelle-google, dschuff, jfb. · View Herald TranscriptSep 1 2017, 10:18 AM This revision is now accepted and ready to land.Sep 1 2017, 10:21 AM Closed by commit rL312340: [WebAssembly] Fix getSymbolValue for exported globals (authored by sbc). · Explain WhySep 1 2017, 10:25 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 113554 llvm/trunk/lib/Object/WasmObjectFile.cpp
llvm/trunk/test/tools/llvm-nm/wasm/exports.yaml
llvm/trunk/test/tools/llvm-nm/wasm/imports.yaml
llvm/trunk/test/tools/llvm-nm/wasm/weak-symbols.yaml
|