Skip to content

Commit

Permalink
[WebAssembly] Fix tests with invalid yaml (required CODE section miss…
Browse files Browse the repository at this point in the history
…ing)

Differential Revision: https://reviews.llvm.org/D44023

llvm-svn: 326692
  • Loading branch information
NWilson committed Mar 5, 2018
1 parent 959e737 commit 6705c00
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
8 changes: 8 additions & 0 deletions llvm/test/ObjectYAML/wasm/export_section.yaml
Expand Up @@ -38,6 +38,14 @@ Sections:
- Name: table_export
Kind: TABLE
Index: 0
- Type: CODE
Functions:
- Index: 0
Locals:
Body: 0B
- Index: 1
Locals:
Body: 0B
...
# CHECK: --- !WASM
# CHECK: FileHeader:
Expand Down
8 changes: 8 additions & 0 deletions llvm/test/ObjectYAML/wasm/function_section.yaml
Expand Up @@ -14,6 +14,14 @@ Sections:
- I32
- Type: FUNCTION
FunctionTypes: [ 1, 0 ]
- Type: CODE
Functions:
- Index: 0
Locals:
Body: 0B
- Index: 1
Locals:
Body: 0B
...
# CHECK: --- !WASM
# CHECK: FileHeader:
Expand Down
15 changes: 12 additions & 3 deletions llvm/test/ObjectYAML/wasm/start_section.yaml
Expand Up @@ -7,14 +7,23 @@ Sections:
- Type: TYPE
Signatures:
- Index: 0
ReturnType: I32
ReturnType: NORESULT
ParamTypes:
- F32
- F32
- Type: FUNCTION
FunctionTypes: [ 0, 0, 0 ]
- Type: START
StartFunction: 1
- Type: CODE
Functions:
- Index: 0
Locals:
Body: 0B
- Index: 1
Locals:
Body: 0B
- Index: 2
Locals:
Body: 0B
...
# CHECK: --- !WASM
# CHECK: FileHeader:
Expand Down

0 comments on commit 6705c00

Please sign in to comment.