[WebAssembly] Fix parsing of linking section for named global imports

Differential Revision: https://reviews.llvm.org/D91635
This commit is contained in:
Andy Wingo 2020-11-17 08:03:50 -08:00 committed by Sam Clegg
parent 0454154efd
commit 2a473db573
3 changed files with 0 additions and 3 deletions

View File

@ -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;
}

View File

@ -219,7 +219,6 @@
; CHECK-NEXT: Flags [ (0x10)
; CHECK-NEXT: UNDEFINED (0x10)
; CHECK-NEXT: ]
; CHECK-NEXT: ImportName: __stack_pointer
; CHECK-NEXT: ImportModule: env
; CHECK-NEXT: ElementIndex: 0x0
; CHECK-NEXT: }

View File

@ -219,7 +219,6 @@
; CHECK-NEXT: Flags [ (0x10)
; CHECK-NEXT: UNDEFINED (0x10)
; CHECK-NEXT: ]
; CHECK-NEXT: ImportName: __stack_pointer
; CHECK-NEXT: ImportModule: env
; CHECK-NEXT: ElementIndex: 0x0
; CHECK-NEXT: }