1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Option Parsing Definitions *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9/////////
10// Tables
11
12#ifdef OPTTABLE_CODE
13static llvm::opt::OptTable::Tables optionTables() {
14
15#ifdef __GNUC__
16#pragma GCC diagnostic push
17#pragma GCC diagnostic ignored "-Woverlength-strings"
18#endif
19static constexpr char OptionStrTableStorage[] =
20 "\0"
21 "-\0"
22 "--\0"
23 "action group\0"
24 "<input>\0"
25 "<unknown>\0"
26 "-archs\0"
27 "Display the arch_types present in the input file\0"
28 "-arch\0"
29 "Specifies the architecture and the corresponding input file\0"
30 "-create\0"
31 "Create a universal binary output file from the input files. Requires -output option\0"
32 "-extract\0"
33 "Create a universal output file containing only the specified arch_type from the fat input file. Requires -output option\0"
34 "-fat64\0"
35 "Use 64 bits Universal Mach-O format\0"
36 "-help\0"
37 "-h\0"
38 "-info\0"
39 "Display descriptions of each input file including filename and arch_types. Groups universal binaries together followed by thin files\0"
40 "-output\0"
41 "Create output file with specified name\0"
42 "-o\0"
43 "-remove\0"
44 "Remove the specified arch_type from the universal input file. Requires -output option\0"
45 "-replace\0"
46 "Replace the specified arch type with the contents of the input_file in a universal binary. Requires -output option\0"
47 "-segalign\0"
48 "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.\0"
49 "-thin\0"
50 "Create a thin output file of specified arch_type from the fat input file. Requires -output option\0"
51 "-verify_arch\0"
52 "Verify that the specified arch_types are present in the input file\0"
53 "-version\0"
54 "Print the version and exit.\0"
55 ;
56#ifdef __GNUC__
57#pragma GCC diagnostic pop
58#endif
59
60static constexpr llvm::StringTable
61OptionStrTable = OptionStrTableStorage;
62
63 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
64 0 /* prefixes */,
65 1 /* prefixes */, 1 /* '-' */,
66 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */
67 };
68
69 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
70 {0, 0},
71 };
72
73 static constexpr unsigned OptionSubCommandIDsTable[] = {
74 0 /* subcommands */
75 };
76
77 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
78 {0, 0, 0, 0, 0, 0, 0, 0},
79 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
80 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 2},
81 };
82
83 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
84 {6 /* action group */, 0, 0, 0, 0, 0, llvm::opt::Option::GroupClass},
85 {19 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
86 {27 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
87 {37 /* -archs */, 44, 1, 0, 1, 3, llvm::opt::Option::FlagClass},
88 {93 /* -arch */, 99, 0, 0, 2, 3, llvm::opt::Option::MultiArgClass},
89 {159 /* -create */, 167, 1, 0, 1, 3, llvm::opt::Option::FlagClass},
90 {251 /* -extract */, 260, 1, 0, 1, 3, llvm::opt::Option::SeparateClass},
91 {380 /* -fat64 */, 387, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
92 {423 /* -help */, 0, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
93 {429 /* -h */, 0, 0, 9, 1, 1, llvm::opt::Option::FlagClass},
94 {432 /* -info */, 438, 1, 0, 1, 3, llvm::opt::Option::FlagClass},
95 {571 /* -output */, 579, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
96 {618 /* -o */, 0, 0, 12, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
97 {621 /* -remove */, 629, 1, 0, 1, 3, llvm::opt::Option::SeparateClass},
98 {715 /* -replace */, 724, 1, 0, 2, 3, llvm::opt::Option::MultiArgClass},
99 {839 /* -segalign */, 849, 0, 0, 2, 3, llvm::opt::Option::MultiArgClass},
100 {1011 /* -thin */, 1017, 1, 0, 1, 3, llvm::opt::Option::SeparateClass},
101 {1115 /* -verify_arch */, 1128, 1, 0, 1, 3, llvm::opt::Option::RemainingArgsClass},
102 {1195 /* -version */, 1204, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
103 };
104
105 return {OptionStrTable, OptionPrefixesTable,
106 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
107}
108#undef OPTTABLE_CODE
109#endif // OPTTABLE_CODE
110
111/////////
112// ValuesCode
113
114#ifdef OPTTABLE_VALUES_CODE
115static llvm::StringRef getOptionValuesCode(unsigned ID) {
116 switch (ID) {
117 }
118 return {};
119}
120#undef OPTTABLE_VALUES_CODE
121#endif // OPTTABLE_VALUES_CODE
122/////////
123// Groups
124
125#ifdef OPTION
126OPTION(0 /* no prefixes */, 6 /* action group */, action_group, Group, INVALID, INVALID, 0, 0, 0, 0, 0, 0, 0, 0, 0)
127
128//////////
129// Options
130
131OPTION(0, 19 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
132OPTION(0, 27 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
133OPTION(3, 37 /* -archs */, archs, Flag, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 44, 0, 0, 0, 0)
134OPTION(3, 93 /* -arch */, arch, MultiArg, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 2, 99, 0, 0, 0, 0)
135OPTION(3, 159 /* -create */, create, Flag, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 167, 0, 0, 0, 0)
136OPTION(3, 251 /* -extract */, extract, Separate, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 260, 0, 0, 0, 0)
137OPTION(3, 380 /* -fat64 */, fat64, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 387, 0, 0, 0, 0)
138OPTION(3, 423 /* -help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
139OPTION(1, 429 /* -h */, h, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
140OPTION(3, 432 /* -info */, info, Flag, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 438, 0, 0, 0, 0)
141OPTION(3, 571 /* -output */, output, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 579, 0, 0, 0, 0)
142OPTION(1, 618 /* -o */, o, JoinedOrSeparate, INVALID, output, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
143OPTION(3, 621 /* -remove */, remove, Separate, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 629, 0, 0, 0, 0)
144OPTION(3, 715 /* -replace */, replace, MultiArg, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 2, 724, 0, 0, 0, 0)
145OPTION(3, 839 /* -segalign */, segalign, MultiArg, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 2, 849, 0, 0, 0, 0)
146OPTION(3, 1011 /* -thin */, thin, Separate, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1017, 0, 0, 0, 0)
147OPTION(3, 1115 /* -verify_arch */, verify_arch, RemainingArgs, action_group, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1128, 0, 0, 0, 0)
148OPTION(3, 1195 /* -version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 1204, 0, 0, 0, 0)
149#endif // OPTION
150
151#ifdef SIMPLE_ENUM_VALUE_TABLE
152
153struct SimpleEnumValue {
154 const char *Name;
155 unsigned Value;
156};
157
158struct SimpleEnumValueTable {
159 const SimpleEnumValue *Table;
160 unsigned Size;
161};
162static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
163static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
164#endif // SIMPLE_ENUM_VALUE_TABLE
165