Skip to content

Commit 6ee55f9

Browse files
committed
Fix test failure created by ef8c913
Followup to https://reviews.llvm.org/D108877 to fix test failure.
1 parent fb4d590 commit 6ee55f9

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

lld/test/wasm/shared-needed.s

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ data:
2929
# SO1-NEXT: TableSize: 0
3030
# SO1-NEXT: TableAlignment: 0
3131
# SO1-NEXT: Needed: []
32-
# SO1-NEXT: ExportInfo: []
3332
# SO1-NEXT: - Type: TYPE
3433

3534
# SO2: Sections:
@@ -41,5 +40,4 @@ data:
4140
# SO2-NEXT: TableAlignment: 0
4241
# SO2-NEXT: Needed:
4342
# SO2-NEXT: - shared-needed.s.tmp1.so
44-
# SO2-NEXT: ExportInfo: []
4543
# SO2-NEXT: - Type: TYPE

lld/test/wasm/shared.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ get_local_func_address:
133133
# CHECK-NEXT: TableSize: 2
134134
# CHECK-NEXT: TableAlignment: 0
135135
# CHECK-NEXT: Needed: []
136-
# CHECK-NEXT: ExportInfo: []
137136
# CHECK-NEXT: - Type: TYPE
138137

139138
# check for import of __table_base and __memory_base globals

lld/test/wasm/shared64.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ get_local_func_address:
134134
# CHECK-NEXT: TableSize: 2
135135
# CHECK-NEXT: TableAlignment: 0
136136
# CHECK-NEXT: Needed: []
137-
# CHECK-NEXT: ExportInfo: []
138137
# CHECK-NEXT: - Type: TYPE
139138

140139
# check for import of __table_base and __memory_base globals

llvm/lib/ObjectYAML/WasmYAML.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void sectionMapping(IO &IO, WasmYAML::DylinkSection &Section) {
5555
IO.mapRequired("TableSize", Section.TableSize);
5656
IO.mapRequired("TableAlignment", Section.TableAlignment);
5757
IO.mapRequired("Needed", Section.Needed);
58-
IO.mapRequired("ExportInfo", Section.ExportInfo);
58+
IO.mapOptional("ExportInfo", Section.ExportInfo);
5959
}
6060

6161
static void sectionMapping(IO &IO, WasmYAML::NameSection &Section) {

0 commit comments

Comments
 (0)