mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
92e836cfd2
Mostly this change adds support converting to and from YAML which will allow us to write more test cases for the WebAssembly MC and lld ports. Better support for objdump, readelf, and nm will be in followup CLs. I had to update the two wasm test binaries because they used the old style 'name' section which is no longer supported. Differential Revision: https://reviews.llvm.org/D31099 Patch by Sam Clegg llvm-svn: 299101
24 lines
672 B
YAML
24 lines
672 B
YAML
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
|
|
--- !WASM
|
|
FileHeader:
|
|
Version: 0x00000001
|
|
Sections:
|
|
- Type: MEMORY
|
|
Memories:
|
|
- Flags: 0x00000001
|
|
Initial: 0x00000002
|
|
Maximum: 0x000000FF
|
|
- Initial: 0x00000003
|
|
...
|
|
# CHECK: --- !WASM
|
|
# CHECK: FileHeader:
|
|
# CHECK: Version: 0x00000001
|
|
# CHECK: Sections:
|
|
# CHECK: - Type: MEMORY
|
|
# CHECK: Memories:
|
|
# CHECK: - Flags: 0x00000001
|
|
# CHECK: Initial: 0x00000002
|
|
# CHECK: Maximum: 0x000000FF
|
|
# CHECK: - Initial: 0x00000003
|
|
# CHECK: ...
|