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 "--as-flags\0"
26 "--as\0"
27 "--dllname\0"
28 "-D\0"
29 "Specify the input DLL Name\0"
30 "-d\0"
31 "Input .def File\0"
32 "-f\0"
33 "Assembler Flags\0"
34 "--identify-strict\0"
35 "Error out if the --identify option detects more than one DLL\0"
36 "--identify\0"
37 "--input-def\0"
38 "--input-native-def\0"
39 "-I\0"
40 "Identify DLL name from import library\0"
41 "--kill-at\0"
42 "-k\0"
43 "Kill @n Symbol from export\0"
44 "-l\0"
45 "Generate an import lib\0"
46 "--machine\0"
47 "-m\0"
48 "Set target machine\0"
49 "--no-leading-underscore\0"
50 "Don't add leading underscores on symbols\0"
51 "-N\0"
52 "Input native .def File on ARM64EC\0"
53 "--output-lib\0"
54 "-S\0"
55 "Assembler\0"
56 "--temp-prefix\0"
57 "-t\0"
58 "Prefix for temporary files (ignored)\0"
59 ;
60#ifdef __GNUC__
61#pragma GCC diagnostic pop
62#endif
63
64static constexpr llvm::StringTable
65OptionStrTable = OptionStrTableStorage;
66
67 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
68 0 /* prefixes */,
69 1 /* prefixes */, 1 /* '-' */,
70 1 /* prefixes */, 3 /* '--' */
71 };
72
73 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
74 {0, 0},
75 };
76
77 static constexpr unsigned OptionSubCommandIDsTable[] = {
78 0 /* subcommands */
79 };
80
81 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
82 {0, 0, 0, 0, 0, 0, 0, 0},
83 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
84 };
85
86 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
87 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
88 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
89 {24 /* --as-flags */, 0, 0, 8, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
90 {35 /* --as */, 0, 0, 22, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
91 {40 /* --dllname */, 0, 0, 6, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
92 {50 /* -D */, 53, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
93 {80 /* -d */, 83, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
94 {99 /* -f */, 102, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
95 {118 /* --identify-strict */, 136, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
96 {197 /* --identify */, 0, 0, 13, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
97 {208 /* --input-def */, 0, 0, 7, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
98 {220 /* --input-native-def */, 0, 0, 20, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
99 {239 /* -I */, 242, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
100 {280 /* --kill-at */, 0, 0, 15, 1, 3, llvm::opt::Option::FlagClass},
101 {290 /* -k */, 293, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
102 {320 /* -l */, 323, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
103 {346 /* --machine */, 0, 0, 18, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
104 {356 /* -m */, 359, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
105 {378 /* --no-leading-underscore */, 402, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
106 {443 /* -N */, 446, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
107 {480 /* --output-lib */, 0, 0, 16, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
108 {493 /* -S */, 496, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
109 {506 /* --temp-prefix */, 0, 0, 24, 1, 3, llvm::opt::Option::JoinedOrSeparateClass},
110 {520 /* -t */, 523, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
111 };
112
113 return {OptionStrTable, OptionPrefixesTable,
114 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
115}
116#undef OPTTABLE_CODE
117#endif // OPTTABLE_CODE
118
119/////////
120// ValuesCode
121
122#ifdef OPTTABLE_VALUES_CODE
123static llvm::StringRef getOptionValuesCode(unsigned ID) {
124 switch (ID) {
125 }
126 return {};
127}
128#undef OPTTABLE_VALUES_CODE
129#endif // OPTTABLE_VALUES_CODE
130/////////
131// Groups
132
133#ifdef OPTION
134
135//////////
136// Options
137
138OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
139OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
140OPTION(3, 24 /* --as-flags */, f_alias, JoinedOrSeparate, INVALID, f, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
141OPTION(3, 35 /* --as */, S_alias, JoinedOrSeparate, INVALID, S, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
142OPTION(3, 40 /* --dllname */, D_long, JoinedOrSeparate, INVALID, D, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
143OPTION(1, 50 /* -D */, D, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 53, 0, 0, 0, 0)
144OPTION(1, 80 /* -d */, d, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 83, 0, 0, 0, 0)
145OPTION(1, 99 /* -f */, f, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 102, 0, 0, 0, 0)
146OPTION(3, 118 /* --identify-strict */, identify_strict, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 136, 0, 0, 0, 0)
147OPTION(3, 197 /* --identify */, I_long, JoinedOrSeparate, INVALID, I, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
148OPTION(3, 208 /* --input-def */, d_long, JoinedOrSeparate, INVALID, d, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
149OPTION(3, 220 /* --input-native-def */, N_long, JoinedOrSeparate, INVALID, N, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
150OPTION(1, 239 /* -I */, I, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 242, 0, 0, 0, 0)
151OPTION(3, 280 /* --kill-at */, k_alias, Flag, INVALID, k, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
152OPTION(1, 290 /* -k */, k, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 293, 0, 0, 0, 0)
153OPTION(1, 320 /* -l */, l, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 323, 0, 0, 0, 0)
154OPTION(3, 346 /* --machine */, m_long, JoinedOrSeparate, INVALID, m, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
155OPTION(1, 356 /* -m */, m, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 359, 0, 0, 0, 0)
156OPTION(3, 378 /* --no-leading-underscore */, no_leading_underscore, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 402, 0, 0, 0, 0)
157OPTION(1, 443 /* -N */, N, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 446, 0, 0, 0, 0)
158OPTION(3, 480 /* --output-lib */, l_long, JoinedOrSeparate, INVALID, l, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
159OPTION(1, 493 /* -S */, S, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 496, 0, 0, 0, 0)
160OPTION(3, 506 /* --temp-prefix */, t_alias, JoinedOrSeparate, INVALID, t, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
161OPTION(1, 520 /* -t */, t, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 523, 0, 0, 0, 0)
162#endif // OPTION
163
164#ifdef SIMPLE_ENUM_VALUE_TABLE
165
166struct SimpleEnumValue {
167 const char *Name;
168 unsigned Value;
169};
170
171struct SimpleEnumValueTable {
172 const SimpleEnumValue *Table;
173 unsigned Size;
174};
175static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
176static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
177#endif // SIMPLE_ENUM_VALUE_TABLE
178