aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2020-11-17 08:03:50 -0800
committerSam Clegg <sbc@chromium.org>2020-11-17 08:14:29 -0800
commit2a473db57391e87ac0207a92117a14b0313661f7 (patch)
tree220652e99300553356612cdc56760bfe7ba37089 /llvm/lib/Object/WasmObjectFile.cpp
parent0454154efd5423a5400a0d76572421d4f62c18d1 (diff)
downloadllvm-2a473db57391e87ac0207a92117a14b0313661f7.zip
llvm-2a473db57391e87ac0207a92117a14b0313661f7.tar.gz
llvm-2a473db57391e87ac0207a92117a14b0313661f7.tar.bz2
[WebAssembly] Fix parsing of linking section for named global imports
Differential Revision: https://reviews.llvm.org/D91635
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r--llvm/lib/Object/WasmObjectFile.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp
index 82aa1f5..d6bb96f 100644
--- a/llvm/lib/Object/WasmObjectFile.cpp
+++ b/llvm/lib/Object/WasmObjectFile.cpp
@@ -562,7 +562,6 @@ Error WasmObjectFile::parseLinkingSectionSymtab(ReadContext &Ctx) {
Info.Name = Import.Field;
}
GlobalType = &Import.Global;
- Info.ImportName = Import.Field;
if (!Import.Module.empty()) {
Info.ImportModule = Import.Module;
}