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 "<input>\0"
24 "<unknown>\0"
25 "-###\0"
26 "--codepage=\0"
27 "Default codepage to use\0"
28 "--codepage\0"
29 "-c\0"
30 "--define=\0"
31 "Define to pass to the preprocessor\0"
32 "--define\0"
33 "-D\0"
34 "-F\0"
35 "--help\0"
36 "Display this message and exit\0"
37 "-h\0"
38 "--include-dir=\0"
39 "Include directory\0"
40 "--include-dir\0"
41 "--include=\0"
42 "--include\0"
43 "--input-format=\0"
44 "Input format\0"
45 "--input-format\0"
46 "--input=\0"
47 "Input file\0"
48 "--input\0"
49 "-I\0"
50 "-i\0"
51 "-J\0"
52 "--language=\0"
53 "Default language to use (0x0-0xffff)\0"
54 "--language\0"
55 "-l\0"
56 "--no-preprocess\0"
57 "--output-format=\0"
58 "Output format\0"
59 "--output-format\0"
60 "--output=\0"
61 "Output file\0"
62 "--output\0"
63 "-O\0"
64 "-o\0"
65 "--preprocessor-arg=\0"
66 "Preprocessor command argument\0"
67 "--preprocessor-arg\0"
68 "--preprocessor=\0"
69 "Custom preprocessor command\0"
70 "--preprocessor\0"
71 "--target=\0"
72 "Target BFD format name\0"
73 "--target\0"
74 "--undefine=\0"
75 "Undefine to pass to the preprocessor\0"
76 "--undefine\0"
77 "--use-temp-file\0"
78 "Mimic GNU windres preprocessor option handling (don't unescape preprocessor options)\0"
79 "-U\0"
80 "--verbose\0"
81 "Enable verbose output\0"
82 "--version\0"
83 "Display version\0"
84 "-V\0"
85 "-v\0"
86 ;
87#ifdef __GNUC__
88#pragma GCC diagnostic pop
89#endif
90
91static constexpr llvm::StringTable
92OptionStrTable = OptionStrTableStorage;
93
94 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
95 0 /* prefixes */,
96 1 /* prefixes */, 1 /* '-' */,
97 1 /* prefixes */, 3 /* '--' */
98 };
99
100 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
101 {0, 0},
102 };
103
104 static constexpr unsigned OptionSubCommandIDsTable[] = {
105 0 /* subcommands */
106 };
107
108 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
109 {0, 0, 0, 0, 0, 0, 0, 0},
110 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
111 };
112
113 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
114 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
115 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
116 {24 /* -### */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
117 {29 /* --codepage= */, 41, 0, 5, 1, 3, llvm::opt::Option::JoinedClass},
118 {65 /* --codepage */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
119 {76 /* -c */, 0, 0, 5, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
120 {79 /* --define= */, 89, 0, 8, 1, 3, llvm::opt::Option::JoinedClass},
121 {124 /* --define */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
122 {133 /* -D */, 0, 0, 8, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
123 {136 /* -F */, 0, 0, 39, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
124 {139 /* --help */, 146, 0, 12, 1, 3, llvm::opt::Option::FlagClass},
125 {176 /* -h */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
126 {179 /* --include-dir= */, 194, 0, 14, 1, 3, llvm::opt::Option::JoinedClass},
127 {212 /* --include-dir */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
128 {226 /* --include= */, 0, 0, 14, 1, 3, llvm::opt::Option::JoinedClass},
129 {237 /* --include */, 0, 0, 14, 1, 3, llvm::opt::Option::SeparateClass},
130 {247 /* --input-format= */, 263, 0, 18, 1, 3, llvm::opt::Option::JoinedClass},
131 {276 /* --input-format */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
132 {291 /* --input= */, 300, 0, 20, 1, 3, llvm::opt::Option::JoinedClass},
133 {311 /* --input */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
134 {319 /* -I */, 0, 0, 14, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
135 {322 /* -i */, 0, 0, 20, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
136 {325 /* -J */, 0, 0, 18, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
137 {328 /* --language= */, 340, 0, 25, 1, 3, llvm::opt::Option::JoinedClass},
138 {377 /* --language */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
139 {388 /* -l */, 0, 0, 25, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
140 {391 /* --no-preprocess */, 0, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
141 {407 /* --output-format= */, 424, 0, 29, 1, 3, llvm::opt::Option::JoinedClass},
142 {438 /* --output-format */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
143 {454 /* --output= */, 464, 0, 31, 1, 3, llvm::opt::Option::JoinedClass},
144 {476 /* --output */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
145 {485 /* -O */, 0, 0, 29, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
146 {488 /* -o */, 0, 0, 31, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
147 {491 /* --preprocessor-arg= */, 511, 0, 35, 1, 3, llvm::opt::Option::JoinedClass},
148 {541 /* --preprocessor-arg */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
149 {560 /* --preprocessor= */, 576, 0, 37, 1, 3, llvm::opt::Option::JoinedClass},
150 {604 /* --preprocessor */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
151 {619 /* --target= */, 629, 0, 39, 1, 3, llvm::opt::Option::JoinedClass},
152 {652 /* --target */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
153 {661 /* --undefine= */, 673, 0, 41, 1, 3, llvm::opt::Option::JoinedClass},
154 {710 /* --undefine */, 0, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
155 {721 /* --use-temp-file */, 737, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
156 {822 /* -U */, 0, 0, 41, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
157 {825 /* --verbose */, 835, 0, 47, 1, 3, llvm::opt::Option::FlagClass},
158 {857 /* --version */, 867, 0, 46, 1, 3, llvm::opt::Option::FlagClass},
159 {883 /* -V */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
160 {886 /* -v */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
161 };
162
163 return {OptionStrTable, OptionPrefixesTable,
164 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
165}
166#undef OPTTABLE_CODE
167#endif // OPTTABLE_CODE
168
169/////////
170// ValuesCode
171
172#ifdef OPTTABLE_VALUES_CODE
173static llvm::StringRef getOptionValuesCode(unsigned ID) {
174 switch (ID) {
175 }
176 return {};
177}
178#undef OPTTABLE_VALUES_CODE
179#endif // OPTTABLE_VALUES_CODE
180/////////
181// Groups
182
183#ifdef OPTION
184
185//////////
186// Options
187
188OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
189OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
190OPTION(1, 24 /* -### */, _HASH_HASH_HASH, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
191OPTION(3, 29 /* --codepage= */, codepage_eq, Joined, INVALID, codepage, 0, 0, static_cast<unsigned>(DefaultVis), 0, 41, 0, 0, 0, 0)
192OPTION(3, 65 /* --codepage */, codepage, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
193OPTION(1, 76 /* -c */, codepage_short, JoinedOrSeparate, INVALID, codepage, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
194OPTION(3, 79 /* --define= */, define_eq, Joined, INVALID, define, 0, 0, static_cast<unsigned>(DefaultVis), 0, 89, 0, 0, 0, 0)
195OPTION(3, 124 /* --define */, define, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
196OPTION(1, 133 /* -D */, define_short, JoinedOrSeparate, INVALID, define, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
197OPTION(1, 136 /* -F */, target_short, JoinedOrSeparate, INVALID, target, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
198OPTION(3, 139 /* --help */, help_long, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 146, 0, 0, 0, 0)
199OPTION(1, 176 /* -h */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
200OPTION(3, 179 /* --include-dir= */, include_dir_eq, Joined, INVALID, include_dir, 0, 0, static_cast<unsigned>(DefaultVis), 0, 194, 0, 0, 0, 0)
201OPTION(3, 212 /* --include-dir */, include_dir, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
202OPTION(3, 226 /* --include= */, include_alias_eq, Joined, INVALID, include_dir, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
203OPTION(3, 237 /* --include */, include_alias, Separate, INVALID, include_dir, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
204OPTION(3, 247 /* --input-format= */, input_format_eq, Joined, INVALID, input_format, 0, 0, static_cast<unsigned>(DefaultVis), 0, 263, 0, 0, 0, 0)
205OPTION(3, 276 /* --input-format */, input_format, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
206OPTION(3, 291 /* --input= */, input_eq, Joined, INVALID, input, 0, 0, static_cast<unsigned>(DefaultVis), 0, 300, 0, 0, 0, 0)
207OPTION(3, 311 /* --input */, input, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
208OPTION(1, 319 /* -I */, include_dir_short, JoinedOrSeparate, INVALID, include_dir, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
209OPTION(1, 322 /* -i */, input_short, JoinedOrSeparate, INVALID, input, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
210OPTION(1, 325 /* -J */, input_format_short, JoinedOrSeparate, INVALID, input_format, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
211OPTION(3, 328 /* --language= */, language_eq, Joined, INVALID, language, 0, 0, static_cast<unsigned>(DefaultVis), 0, 340, 0, 0, 0, 0)
212OPTION(3, 377 /* --language */, language, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
213OPTION(1, 388 /* -l */, language_short, JoinedOrSeparate, INVALID, language, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
214OPTION(3, 391 /* --no-preprocess */, no_preprocess, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
215OPTION(3, 407 /* --output-format= */, output_format_eq, Joined, INVALID, output_format, 0, 0, static_cast<unsigned>(DefaultVis), 0, 424, 0, 0, 0, 0)
216OPTION(3, 438 /* --output-format */, output_format, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
217OPTION(3, 454 /* --output= */, output_eq, Joined, INVALID, output, 0, 0, static_cast<unsigned>(DefaultVis), 0, 464, 0, 0, 0, 0)
218OPTION(3, 476 /* --output */, output, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
219OPTION(1, 485 /* -O */, output_format_short, JoinedOrSeparate, INVALID, output_format, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
220OPTION(1, 488 /* -o */, output_short, JoinedOrSeparate, INVALID, output, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
221OPTION(3, 491 /* --preprocessor-arg= */, preprocessor_arg_eq, Joined, INVALID, preprocessor_arg, 0, 0, static_cast<unsigned>(DefaultVis), 0, 511, 0, 0, 0, 0)
222OPTION(3, 541 /* --preprocessor-arg */, preprocessor_arg, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
223OPTION(3, 560 /* --preprocessor= */, preprocessor_eq, Joined, INVALID, preprocessor, 0, 0, static_cast<unsigned>(DefaultVis), 0, 576, 0, 0, 0, 0)
224OPTION(3, 604 /* --preprocessor */, preprocessor, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
225OPTION(3, 619 /* --target= */, target_eq, Joined, INVALID, target, 0, 0, static_cast<unsigned>(DefaultVis), 0, 629, 0, 0, 0, 0)
226OPTION(3, 652 /* --target */, target, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
227OPTION(3, 661 /* --undefine= */, undef_eq, Joined, INVALID, undef, 0, 0, static_cast<unsigned>(DefaultVis), 0, 673, 0, 0, 0, 0)
228OPTION(3, 710 /* --undefine */, undef, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
229OPTION(3, 721 /* --use-temp-file */, use_temp_file, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 737, 0, 0, 0, 0)
230OPTION(1, 822 /* -U */, undef_short, JoinedOrSeparate, INVALID, undef, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
231OPTION(3, 825 /* --verbose */, verbose_long, Flag, INVALID, verbose, 0, 0, static_cast<unsigned>(DefaultVis), 0, 835, 0, 0, 0, 0)
232OPTION(3, 857 /* --version */, version_long, Flag, INVALID, version, 0, 0, static_cast<unsigned>(DefaultVis), 0, 867, 0, 0, 0, 0)
233OPTION(1, 883 /* -V */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
234OPTION(1, 886 /* -v */, verbose, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
235#endif // OPTION
236
237#ifdef SIMPLE_ENUM_VALUE_TABLE
238
239struct SimpleEnumValue {
240 const char *Name;
241 unsigned Value;
242};
243
244struct SimpleEnumValueTable {
245 const SimpleEnumValue *Table;
246 unsigned Size;
247};
248static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
249static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
250#endif // SIMPLE_ENUM_VALUE_TABLE
251