mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
5403a31116
This change merges llvm-elfabi and llvm-ifs tools. Differential Revision: https://reviews.llvm.org/D100139
26 lines
962 B
Plaintext
26 lines
962 B
Plaintext
# RUN: llvm-ifs --output-format=IFS --output=- %s | FileCheck %s
|
|
|
|
--- !ifs-v1
|
|
SoName: somelib.so
|
|
IfsVersion: 3.0
|
|
Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
|
|
Symbols:
|
|
- { Name: foo, Type: Func }
|
|
- { Name: bar, Type: Object, Size: 42 }
|
|
- { Name: baz, Type: Object, Size: 8 }
|
|
- { Name: not, Type: Object, Size: 128, Undefined: true }
|
|
- { Name: nor, Type: Func, Undefined: true }
|
|
...
|
|
|
|
# CHECK: --- !ifs-v1
|
|
# CHECK-NEXT: IfsVersion: {{[1-9]\d*\.(0|([1-9]\d*))}}
|
|
# CHECK-NEXT: SoName: somelib.so
|
|
# CHECK-NEXT: Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
|
|
# CHECK-NEXT: Symbols:
|
|
# CHECK-NEXT: - { Name: bar, Type: Object, Size: 42 }
|
|
# CHECK-NEXT: - { Name: baz, Type: Object, Size: 8 }
|
|
# CHECK-NEXT: - { Name: foo, Type: Func }
|
|
# CHECK-NEXT: - { Name: nor, Type: Func, Undefined: true }
|
|
# CHECK-NEXT: - { Name: not, Type: Object, Size: 128, Undefined: true }
|
|
# CHECK-NEXT: ...
|