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