mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
e0c741cd7e
This tool merges interface stub files to produce a merged interface stub file or a stub library. Currently it for stub library generation it can produce an ELF .so stub file, or a TBD file (experimental). It will be used by the clang -emit-interface-stubs compilation pipeline to merge and assemble the per-CU stub files into a stub library. The new IFS format is as follows: --- !experimental-ifs-v1 IfsVersion: 1.0 Triple: <llvm triple> ObjectFileFormat: <ELF | TBD> Symbols: _ZSymbolName: { Type: <type>, etc... } ... Differential Revision: https://reviews.llvm.org/D66405 llvm-svn: 370499
17 lines
527 B
Plaintext
17 lines
527 B
Plaintext
# RUN: not llvm-ifs -action write-ifs -o - %s %S/object.ifs 2>&1 | \
|
|
# RUN: FileCheck %s --check-prefixes=CHECK-IFS
|
|
|
|
# RUN: not llvm-ifs -action write-ifs -o - %s 2>&1 | \
|
|
# RUN: FileCheck %s --check-prefixes=CHECK-IFS2
|
|
|
|
# CHECK-IFS: error: Interface Stub: IfsVersion Mismatch.
|
|
# CHECK-IFS2: error: Interface Stub: Bad IfsVersion: 0.0, llvm-ifs supported version: 1.2.
|
|
|
|
--- !experimental-ifs-v1
|
|
IfsVersion: 0.0
|
|
Triple: x86_64-unknown-linux-gnu
|
|
ObjectFileFormat: ELF
|
|
Symbols:
|
|
a: { Type: Func }
|
|
...
|