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