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 "-add_rpath\0"
26 "Add new rpath\0"
27 "-change\0"
28 "Change dependent shared library install name\0"
29 "-delete_all_rpaths\0"
30 "Delete all rpath directives\0"
31 "-delete_rpath\0"
32 "Delete specified rpath\0"
33 "--help\0"
34 "-h\0"
35 "-id\0"
36 "Change dynamic shared library id\0"
37 "--output\0"
38 "Write output to <file>\0"
39 "<file>\0"
40 "-o\0"
41 "Alias for --output\0"
42 "-prepend_rpath\0"
43 "Add new rpath before other rpaths\0"
44 "-rpath\0"
45 "Change rpath path name\0"
46 "--version\0"
47 "Print the version and exit.\0"
48 "-V\0"
49 "Alias for --version\0"
50 ;
51#ifdef __GNUC__
52#pragma GCC diagnostic pop
53#endif
54
55static constexpr llvm::StringTable
56OptionStrTable = OptionStrTableStorage;
57
58 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
59 0 /* prefixes */,
60 1 /* prefixes */, 1 /* '-' */,
61 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */,
62 1 /* prefixes */, 3 /* '--' */
63 };
64
65 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
66 {0, 0},
67 };
68
69 static constexpr unsigned OptionSubCommandIDsTable[] = {
70 0 /* subcommands */
71 };
72
73 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
74 {0, 0, 0, 0, 0, 0, 0, 0},
75 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
76 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 2},
77 {265, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
78 };
79
80 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
81 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
82 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
83 {24 /* -add_rpath */, 35, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
84 {49 /* -change */, 57, 0, 0, 2, 3, llvm::opt::Option::MultiArgClass},
85 {102 /* -delete_all_rpaths */, 121, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
86 {149 /* -delete_rpath */, 163, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
87 {186 /* --help */, 0, 0, 0, 1, 6, llvm::opt::Option::FlagClass},
88 {193 /* -h */, 0, 0, 7, 1, 1, llvm::opt::Option::FlagClass},
89 {196 /* -id */, 200, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
90 {233 /* --output */, 242, 0, 0, 3, 6, llvm::opt::Option::SeparateClass},
91 {272 /* -o */, 275, 0, 10, 3, 1, llvm::opt::Option::JoinedOrSeparateClass},
92 {294 /* -prepend_rpath */, 309, 0, 0, 1, 3, llvm::opt::Option::SeparateClass},
93 {343 /* -rpath */, 350, 0, 0, 2, 3, llvm::opt::Option::MultiArgClass},
94 {373 /* --version */, 383, 0, 0, 1, 6, llvm::opt::Option::FlagClass},
95 {411 /* -V */, 414, 0, 14, 1, 1, llvm::opt::Option::FlagClass},
96 };
97
98 return {OptionStrTable, OptionPrefixesTable,
99 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
100}
101#undef OPTTABLE_CODE
102#endif // OPTTABLE_CODE
103
104/////////
105// ValuesCode
106
107#ifdef OPTTABLE_VALUES_CODE
108static llvm::StringRef getOptionValuesCode(unsigned ID) {
109 switch (ID) {
110 }
111 return {};
112}
113#undef OPTTABLE_VALUES_CODE
114#endif // OPTTABLE_VALUES_CODE
115/////////
116// Groups
117
118#ifdef OPTION
119
120//////////
121// Options
122
123OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
124OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
125OPTION(3, 24 /* -add_rpath */, add_rpath, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 35, 0, 0, 0, 0)
126OPTION(3, 49 /* -change */, change, MultiArg, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 2, 57, 0, 0, 0, 0)
127OPTION(3, 102 /* -delete_all_rpaths */, delete_all_rpaths, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 121, 0, 0, 0, 0)
128OPTION(3, 149 /* -delete_rpath */, delete_rpath, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 163, 0, 0, 0, 0)
129OPTION(6, 186 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
130OPTION(1, 193 /* -h */, h, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
131OPTION(3, 196 /* -id */, id, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 200, 0, 0, 0, 0)
132OPTION(6, 233 /* --output */, output, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 242, 0, 265, 0, 0)
133OPTION(1, 272 /* -o */, o, JoinedOrSeparate, INVALID, output, 0, 0, static_cast<unsigned>(DefaultVis), 0, 275, 0, 265, 0, 0)
134OPTION(3, 294 /* -prepend_rpath */, prepend_rpath, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 309, 0, 0, 0, 0)
135OPTION(3, 343 /* -rpath */, rpath, MultiArg, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 2, 350, 0, 0, 0, 0)
136OPTION(6, 373 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 383, 0, 0, 0, 0)
137OPTION(1, 411 /* -V */, V, Flag, INVALID, version, 0, 0, static_cast<unsigned>(DefaultVis), 0, 414, 0, 0, 0, 0)
138#endif // OPTION
139
140#ifdef SIMPLE_ENUM_VALUE_TABLE
141
142struct SimpleEnumValue {
143 const char *Name;
144 unsigned Value;
145};
146
147struct SimpleEnumValueTable {
148 const SimpleEnumValue *Table;
149 unsigned Size;
150};
151static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
152static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
153#endif // SIMPLE_ENUM_VALUE_TABLE
154