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