1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[WebAssembly] Fix tests with invalid yaml (required CODE section missing)

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

llvm-svn: 326692
This commit is contained in:
Nicholas Wilson 2018-03-05 12:28:01 +00:00
parent bcbc464e13
commit 924f216a98
3 changed files with 28 additions and 3 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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: