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 "COMMANDS\0"
24 "<input>\0"
25 "<unknown>\0"
26 "--arch=\0"
27 "specify the <architecture>\0"
28 "<architecture>\0"
29 "-arch\0"
30 "-compact\0"
31 "write compact tapi output file\0"
32 "-compare\0"
33 "compare tapi files for library differences\0"
34 "-delete-input\0"
35 "delete and replace input file on success\0"
36 "-delete-private-libraries\0"
37 "delete private system dynamic libraries and frameworks\0"
38 "-extract\0"
39 "extract <architecture> from input file\0"
40 "--filetype=\0"
41 "specify the output file type (tbd-v3, tbd-v4 or tbd-v5)\0"
42 "<value>\0"
43 "-filetype\0"
44 "-help\0"
45 "display this help\0"
46 "--ignore-arch=\0"
47 "<architecture> slice to ignore for comparison\0"
48 "-ignore-arch\0"
49 "-merge\0"
50 "merge the input files that represent the same library\0"
51 "--o=\0"
52 "write output to <file>\0"
53 "<file>\0"
54 "-o\0"
55 "-remove\0"
56 "remove <architecture> from input file\0"
57 "-stubify\0"
58 "create a tapi file from a dynamic library or framework\0"
59 "-t\0"
60 "logs each library loaded, useful for debugging problems with search paths where the wrong library is loaded\0"
61 "-version\0"
62 "print the llvm-readtapi version\0"
63 "-v\0"
64 "alias for --version\0"
65 ;
66#ifdef __GNUC__
67#pragma GCC diagnostic pop
68#endif
69
70static constexpr llvm::StringTable
71OptionStrTable = OptionStrTableStorage;
72#undef OPTTABLE_STR_TABLE_CODE
73#endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE
74
75/////////
76// Tables
77
78#ifdef OPTTABLE_CODE
79static llvm::opt::OptTable::Tables optionTables() {
80 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
81 0 /* prefixes */,
82 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */,
83 1 /* prefixes */, 3 /* '--' */
84 };
85
86 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
87 {0, 0},
88 };
89
90 static constexpr unsigned OptionSubCommandIDsTable[] = {
91 0 /* subcommands */
92 };
93
94 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
95 {0, 0, 0, 0, 0},
96 {81, 0, 0, 0, 0},
97 {446, 0, 0, 0, 0},
98 {651, 0, 0, 0, 0},
99 };
100
101 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
102 {6 /* action group */, 19, 0, 0, 0, 0, 0, 0, llvm::opt::Option::GroupClass, 0},
103 {28 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0},
104 {36 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0},
105 {46 /* --arch= */, 54, 0, DefaultVis, 4, 0, 0, 1, llvm::opt::Option::JoinedClass, 0},
106 {96 /* -arch */, 0, 0, DefaultVis, 1, 0, 4, 0, llvm::opt::Option::SeparateClass, 0},
107 {102 /* -compact */, 111, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
108 {142 /* -compare */, 151, 0, DefaultVis, 1, 1, 0, 0, llvm::opt::Option::FlagClass, 0},
109 {194 /* -delete-input */, 208, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
110 {249 /* -delete-private-libraries */, 275, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
111 {330 /* -extract */, 339, 0, DefaultVis, 1, 1, 0, 0, llvm::opt::Option::FlagClass, 0},
112 {378 /* --filetype= */, 390, 0, DefaultVis, 4, 0, 0, 2, llvm::opt::Option::JoinedClass, 0},
113 {454 /* -filetype */, 0, 0, DefaultVis, 1, 0, 11, 0, llvm::opt::Option::SeparateClass, 0},
114 {464 /* -help */, 470, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
115 {488 /* --ignore-arch= */, 503, 0, DefaultVis, 4, 0, 0, 1, llvm::opt::Option::JoinedClass, 0},
116 {549 /* -ignore-arch */, 0, 0, DefaultVis, 1, 0, 14, 0, llvm::opt::Option::SeparateClass, 0},
117 {562 /* -merge */, 569, 0, DefaultVis, 1, 1, 0, 0, llvm::opt::Option::FlagClass, 0},
118 {623 /* --o= */, 628, 0, DefaultVis, 4, 0, 0, 3, llvm::opt::Option::JoinedClass, 0},
119 {658 /* -o */, 0, 0, DefaultVis, 1, 0, 17, 0, llvm::opt::Option::SeparateClass, 0},
120 {661 /* -remove */, 669, 0, DefaultVis, 1, 1, 0, 0, llvm::opt::Option::FlagClass, 0},
121 {707 /* -stubify */, 716, 0, DefaultVis, 1, 1, 0, 0, llvm::opt::Option::FlagClass, 0},
122 {771 /* -t */, 774, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
123 {882 /* -version */, 891, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
124 {923 /* -v */, 926, 0, DefaultVis, 1, 0, 22, 0, llvm::opt::Option::FlagClass, 0},
125 };
126
127 return {OptionStrTableStorage, OptionPrefixesTable,
128 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
129}
130#undef OPTTABLE_CODE
131#endif // OPTTABLE_CODE
132
133/////////
134// ValuesCode
135
136#ifdef OPTTABLE_VALUES_CODE
137static llvm::StringRef getOptionValuesCode(unsigned ID) {
138 switch (ID) {
139 }
140 return {};
141}
142#undef OPTTABLE_VALUES_CODE
143#endif // OPTTABLE_VALUES_CODE
144/////////
145// Groups
146
147#ifdef OPTION
148OPTION(0 /* no prefixes */, 6 /* action group */, action_group, Group, INVALID, INVALID, 0, 0, 0, 0, 19, 0, 0, 0, 0)
149
150//////////
151// Options
152
153OPTION(0, 28 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
154OPTION(0, 36 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
155OPTION(4, 46 /* --arch= */, arch_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 54, 0, 81, 0, 0)
156OPTION(1, 96 /* -arch */, anonymous_2, Separate, INVALID, arch_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
157OPTION(1, 102 /* -compact */, compact, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 111, 0, 0, 0, 0)
158OPTION(1, 142 /* -compare */, compare, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 151, 0, 0, 0, 0)
159OPTION(1, 194 /* -delete-input */, delete_input, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 208, 0, 0, 0, 0)
160OPTION(1, 249 /* -delete-private-libraries */, delete_private_libraries, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 275, 0, 0, 0, 0)
161OPTION(1, 330 /* -extract */, extract, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 339, 0, 0, 0, 0)
162OPTION(4, 378 /* --filetype= */, filetype_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 390, 0, 446, 0, 0)
163OPTION(1, 454 /* -filetype */, anonymous_1, Separate, INVALID, filetype_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
164OPTION(1, 464 /* -help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 470, 0, 0, 0, 0)
165OPTION(4, 488 /* --ignore-arch= */, ignore_arch_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 503, 0, 81, 0, 0)
166OPTION(1, 549 /* -ignore-arch */, anonymous_3, Separate, INVALID, ignore_arch_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
167OPTION(1, 562 /* -merge */, merge, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 569, 0, 0, 0, 0)
168OPTION(4, 623 /* --o= */, output_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 628, 0, 651, 0, 0)
169OPTION(1, 658 /* -o */, anonymous_0, Separate, INVALID, output_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
170OPTION(1, 661 /* -remove */, remove, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 669, 0, 0, 0, 0)
171OPTION(1, 707 /* -stubify */, stubify, Flag, action_group, INVALID, 0, 0, DefaultVis, 0, 716, 0, 0, 0, 0)
172OPTION(1, 771 /* -t */, t, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 774, 0, 0, 0, 0)
173OPTION(1, 882 /* -version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 891, 0, 0, 0, 0)
174OPTION(1, 923 /* -v */, v, Flag, INVALID, version, 0, 0, DefaultVis, 0, 926, 0, 0, 0, 0)
175#endif // OPTION
176
177#ifdef SIMPLE_ENUM_VALUE_TABLE
178
179struct SimpleEnumValue {
180 const char *Name;
181 unsigned Value;
182};
183
184struct SimpleEnumValueTable {
185 const SimpleEnumValue *Table;
186 unsigned Size;
187};
188static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
189static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
190#endif // SIMPLE_ENUM_VALUE_TABLE
191