Skip to content

Commit

Permalink
Fix test failure created by ef8c913
Browse files Browse the repository at this point in the history
Followup to https://reviews.llvm.org/D108877 to fix test
failure.
  • Loading branch information
sbc100 committed Sep 14, 2021
1 parent fb4d590 commit 6ee55f9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions lld/test/wasm/shared-needed.s
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ data:
# SO1-NEXT: TableSize: 0
# SO1-NEXT: TableAlignment: 0
# SO1-NEXT: Needed: []
# SO1-NEXT: ExportInfo: []
# SO1-NEXT: - Type: TYPE

# SO2: Sections:
Expand All @@ -41,5 +40,4 @@ data:
# SO2-NEXT: TableAlignment: 0
# SO2-NEXT: Needed:
# SO2-NEXT: - shared-needed.s.tmp1.so
# SO2-NEXT: ExportInfo: []
# SO2-NEXT: - Type: TYPE
1 change: 0 additions & 1 deletion lld/test/wasm/shared.s
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ get_local_func_address:
# CHECK-NEXT: TableSize: 2
# CHECK-NEXT: TableAlignment: 0
# CHECK-NEXT: Needed: []
# CHECK-NEXT: ExportInfo: []
# CHECK-NEXT: - Type: TYPE

# check for import of __table_base and __memory_base globals
Expand Down
1 change: 0 additions & 1 deletion lld/test/wasm/shared64.s
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ get_local_func_address:
# CHECK-NEXT: TableSize: 2
# CHECK-NEXT: TableAlignment: 0
# CHECK-NEXT: Needed: []
# CHECK-NEXT: ExportInfo: []
# CHECK-NEXT: - Type: TYPE

# check for import of __table_base and __memory_base globals
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ObjectYAML/WasmYAML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void sectionMapping(IO &IO, WasmYAML::DylinkSection &Section) {
IO.mapRequired("TableSize", Section.TableSize);
IO.mapRequired("TableAlignment", Section.TableAlignment);
IO.mapRequired("Needed", Section.Needed);
IO.mapRequired("ExportInfo", Section.ExportInfo);
IO.mapOptional("ExportInfo", Section.ExportInfo);
}

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

0 comments on commit 6ee55f9

Please sign in to comment.