mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
2769a48f27
Summary: Also changes the wasm YAML format to reflect the possibility of having multiple return types and to put the returns after the params for consistency with the binary encoding. Reviewers: aheejin, sbc100 Subscribers: dschuff, jgravelle-google, hiraditya, sunfish, arphaman, rupprecht, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69156 llvm-svn: 375283
30 lines
651 B
Plaintext
30 lines
651 B
Plaintext
# RUN: yaml2obj %s | not llvm-objdump -h - 2>&1 | FileCheck %s
|
|
|
|
--- !WASM
|
|
FileHeader:
|
|
Version: 0x00000001
|
|
Sections:
|
|
- Type: TYPE
|
|
Signatures:
|
|
- Index: 0
|
|
ParamTypes:
|
|
- I32
|
|
ReturnTypes:
|
|
- I32
|
|
- Type: IMPORT
|
|
Imports:
|
|
- Module: foo
|
|
Field: a
|
|
Kind: FUNCTION
|
|
SigIndex: 0
|
|
- Type: CUSTOM
|
|
Name: name
|
|
FunctionNames:
|
|
- Index: 0
|
|
Name: a
|
|
- Index: 0
|
|
Name: b
|
|
...
|
|
|
|
# CHECK: {{.*}}: Function named more than once
|