1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/tools/llvm-lipo/LipoOpts.td
Alexander Shaposhnikov 8300cbdb12 [llvm-lipo] Add support for -extract
This diff adds support for -extract.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D70522
2019-11-21 16:11:48 -08:00

61 lines
2.4 KiB
TableGen

include "llvm/Option/OptParser.td"
def help : Flag<["-", "--"], "help">;
def h : Flag<["-"], "h">, Alias<help>;
def version : Flag<["-", "--"], "version">,
HelpText<"Print the version and exit.">;
def segalign
: MultiArg<["-", "--"], "segalign", 2>,
HelpText<"Specifies the segment alignment for the specified "
"architecture when creating a universal binary file. The "
"alignment is a hexadecimal number that is a power of 2.">;
def arch
: MultiArg<["-", "--"], "arch", 2>,
HelpText<"Specifies the architecture and the corresponding input file">;
def action_group : OptionGroup<"action group">;
def verify_arch
: Option<["-", "--"], "verify_arch", KIND_REMAINING_ARGS>,
Group<action_group>,
HelpText<
"Verify that the specified arch_types are present in the input file">;
def archs : Option<["-", "--"], "archs", KIND_FLAG>,
Group<action_group>,
HelpText<"Display the arch_types present in the input file">;
def info : Option<["-", "--"], "info", KIND_FLAG>,
Group<action_group>,
HelpText<"Display descriptions of each input file including "
"filename and arch_types. Groups universal binaries "
"together followed by thin files">;
def thin : Option<["-", "--"], "thin", KIND_SEPARATE>,
Group<action_group>,
HelpText<"Create a thin output file of specified arch_type from the "
"fat input file. Requires -output option">;
def extract : Option<["-", "--"], "extract", KIND_SEPARATE>,
Group<action_group>,
HelpText<"Create a universal output file containing only the specified "
"arch_type from the fat input file. Requires -output option">;
def create : Option<["-", "--"], "create", KIND_FLAG>,
Group<action_group>,
HelpText<"Create a universal binary output file from the input "
"files. Requires -output option">;
def replace
: MultiArg<["-", "--"], "replace", 2>,
Group<action_group>,
HelpText<"Replace the specified arch type with the contents of the "
"input_file in a universal binary. Requires -output option">;
def output : Option<["-", "--"], "output", KIND_SEPARATE>,
HelpText<"Create output file with specified name">;
def o : JoinedOrSeparate<["-"], "o">, Alias<output>;