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 "-arch_only\0"
26 "Specify architecture type for output library\0"
27 "<arch_type>\0"
28 "-dependency_info\0"
29 "Write an Xcode dependency info file describing the dependencies of the created library\0"
30 "<string>\0"
31 "-D\0"
32 "Use zero for timestamps and UIDs/GIDs (Default)\0"
33 "-filelist\0"
34 "Pass in file containing a list of filenames\0"
35 "<listfile[,dirname]>\0"
36 "-help\0"
37 "Display this help\0"
38 "-h\0"
39 "\0"
40 "\0"
41 "-L\0"
42 "L<dir> adds <dir> to the list of directories in which to search for libraries\0"
43 "<dir>\0"
44 "-l\0"
45 "l<x> searches for the library libx.a in the library search path. If the string 'x' ends with '.o', then the library 'x' is searched for without prepending 'lib' or appending '.a'\0"
46 "<x>\0"
47 "-no_warning_for_no_symbols\0"
48 "Do not warn about files that have no symbols\0"
49 "-o\0"
50 "Specify output filename\0"
51 "<filename>\0"
52 "-static\0"
53 "Produce a statically linked library from the input files\0"
54 "-syslibroot\0"
55 "-U\0"
56 "Use actual timestamps and UIDs/GIDs\0"
57 "-version\0"
58 "Display the version of this program\0"
59 "-V\0"
60 "Print the version number and exit\0"
61 "-warnings_as_errors\0"
62 "Treat warnings as errors\0"
63 ;
64#ifdef __GNUC__
65#pragma GCC diagnostic pop
66#endif
67
68static constexpr llvm::StringTable
69OptionStrTable = OptionStrTableStorage;
70
71 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
72 0 /* prefixes */,
73 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */
74 };
75
76 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
77 {0, 0},
78 };
79
80 static constexpr unsigned OptionSubCommandIDsTable[] = {
81 0 /* subcommands */
82 };
83
84 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
85 {0, 0, 0, 0, 0, 0, 0, 0},
86 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
87 {80, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
88 {196, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
89 {310, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
90 {441, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
91 {629, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
92 {732, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
93 {0, 0, 0, static_cast<unsigned>(HelpHidden), static_cast<unsigned>(DefaultVis), 0, 0, 0},
94 };
95
96 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
97 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
98 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
99 {24 /* -arch_only */, 35, 0, 0, 2, 1, llvm::opt::Option::SeparateClass},
100 {92 /* -dependency_info */, 109, 0, 0, 3, 1, llvm::opt::Option::SeparateClass},
101 {205 /* -D */, 208, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
102 {256 /* -filelist */, 266, 0, 0, 4, 1, llvm::opt::Option::SeparateClass},
103 {331 /* -help */, 337, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
104 {355 /* -h */, 358, 0, 7, 1, 1, llvm::opt::Option::FlagClass},
105 {360 /* -L */, 363, 0, 0, 5, 1, llvm::opt::Option::JoinedOrSeparateClass},
106 {447 /* -l */, 450, 0, 0, 6, 1, llvm::opt::Option::JoinedOrSeparateClass},
107 {633 /* -no_warning_for_no_symbols */, 660, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
108 {705 /* -o */, 708, 0, 0, 7, 1, llvm::opt::Option::SeparateClass},
109 {743 /* -static */, 751, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
110 {808 /* -syslibroot */, 358, 0, 0, 8, 1, llvm::opt::Option::SeparateClass},
111 {820 /* -U */, 823, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
112 {859 /* -version */, 868, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
113 {904 /* -V */, 907, 0, 16, 1, 1, llvm::opt::Option::FlagClass},
114 {941 /* -warnings_as_errors */, 961, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
115 };
116
117 return {OptionStrTable, OptionPrefixesTable,
118 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
119}
120#undef OPTTABLE_CODE
121#endif // OPTTABLE_CODE
122
123/////////
124// ValuesCode
125
126#ifdef OPTTABLE_VALUES_CODE
127static llvm::StringRef getOptionValuesCode(unsigned ID) {
128 switch (ID) {
129 }
130 return {};
131}
132#undef OPTTABLE_VALUES_CODE
133#endif // OPTTABLE_VALUES_CODE
134/////////
135// Groups
136
137#ifdef OPTION
138
139//////////
140// Options
141
142OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
143OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
144OPTION(1, 24 /* -arch_only */, archType, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 35, 0, 80, 0, 0)
145OPTION(1, 92 /* -dependency_info */, dependencyInfoPath, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 109, 0, 196, 0, 0)
146OPTION(1, 205 /* -D */, deterministicOption, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 208, 0, 0, 0, 0)
147OPTION(1, 256 /* -filelist */, fileList, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 266, 0, 310, 0, 0)
148OPTION(1, 331 /* -help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 337, 0, 0, 0, 0)
149OPTION(1, 355 /* -h */, anonymous_0, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 358, 0, 0, 0, 0)
150OPTION(1, 360 /* -L */, librarySearchDirs, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 363, 0, 441, 0, 0)
151OPTION(1, 447 /* -l */, libraries, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 450, 0, 629, 0, 0)
152OPTION(1, 633 /* -no_warning_for_no_symbols */, noWarningForNoSymbols, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 660, 0, 0, 0, 0)
153OPTION(1, 705 /* -o */, outputFile, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 708, 0, 732, 0, 0)
154OPTION(1, 743 /* -static */, static, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 751, 0, 0, 0, 0)
155OPTION(1, 808 /* -syslibroot */, ignoredSyslibRoot, Separate, INVALID, INVALID, 0, static_cast<unsigned>(HelpHidden), static_cast<unsigned>(DefaultVis), 0, 358, 0, 0, 0, 0)
156OPTION(1, 820 /* -U */, nonDeterministicOption, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 823, 0, 0, 0, 0)
157OPTION(1, 859 /* -version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 868, 0, 0, 0, 0)
158OPTION(1, 904 /* -V */, anonymous_1, Flag, INVALID, version, 0, 0, static_cast<unsigned>(DefaultVis), 0, 907, 0, 0, 0, 0)
159OPTION(1, 941 /* -warnings_as_errors */, warningsAsErrors, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 961, 0, 0, 0, 0)
160#endif // OPTION
161
162#ifdef SIMPLE_ENUM_VALUE_TABLE
163
164struct SimpleEnumValue {
165 const char *Name;
166 unsigned Value;
167};
168
169struct SimpleEnumValueTable {
170 const SimpleEnumValue *Table;
171 unsigned Size;
172};
173static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
174static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
175#endif // SIMPLE_ENUM_VALUE_TABLE
176