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 "--debug-file-directory\0"
26 "Path to directory where to look for debug files.\0"
27 "<string>\0"
28 "--debuginfo\0"
29 "If set, fetch a binary file associated with this build id, containing the debuginfo sections.\0"
30 "--dump\0"
31 "If set, dumps the contents of the fetched artifact to standard output. Otherwise, dumps the absolute path to the cached artifact on disk.\0"
32 "--executable\0"
33 "If set, fetch a binary file associated with this build id, containing the executable sections.\0"
34 "--help\0"
35 "Display available options\0"
36 "-h\0"
37 "Alias for --help\0"
38 "--source\0"
39 "Fetch a source file associated with this build id, which is at this relative path relative to the compilation directory.\0"
40 ;
41#ifdef __GNUC__
42#pragma GCC diagnostic pop
43#endif
44
45static constexpr llvm::StringTable
46OptionStrTable = OptionStrTableStorage;
47
48 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
49 0 /* prefixes */,
50 1 /* prefixes */, 1 /* '-' */,
51 1 /* prefixes */, 3 /* '--' */
52 };
53
54 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
55 {0, 0},
56 };
57
58 static constexpr unsigned OptionSubCommandIDsTable[] = {
59 0 /* subcommands */
60 };
61
62 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
63 {0, 0, 0, 0, 0, 0, 0, 0},
64 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
65 {96, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
66 };
67
68 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
69 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
70 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
71 {24 /* --debug-file-directory */, 47, 0, 0, 2, 3, llvm::opt::Option::SeparateClass},
72 {105 /* --debuginfo */, 117, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
73 {211 /* --dump */, 218, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
74 {356 /* --executable */, 369, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
75 {464 /* --help */, 471, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
76 {497 /* -h */, 500, 0, 7, 1, 1, llvm::opt::Option::FlagClass},
77 {517 /* --source */, 526, 0, 0, 2, 3, llvm::opt::Option::SeparateClass},
78 };
79
80 return {OptionStrTable, OptionPrefixesTable,
81 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
82}
83#undef OPTTABLE_CODE
84#endif // OPTTABLE_CODE
85
86/////////
87// ValuesCode
88
89#ifdef OPTTABLE_VALUES_CODE
90static llvm::StringRef getOptionValuesCode(unsigned ID) {
91 switch (ID) {
92 }
93 return {};
94}
95#undef OPTTABLE_VALUES_CODE
96#endif // OPTTABLE_VALUES_CODE
97/////////
98// Groups
99
100#ifdef OPTION
101
102//////////
103// Options
104
105OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
106OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
107OPTION(3, 24 /* --debug-file-directory */, debug_file_directory, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 47, 0, 96, 0, 0)
108OPTION(3, 105 /* --debuginfo */, fetch_debuginfo, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 117, 0, 0, 0, 0)
109OPTION(3, 211 /* --dump */, dump_to_stdout, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 218, 0, 0, 0, 0)
110OPTION(3, 356 /* --executable */, fetch_executable, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 369, 0, 0, 0, 0)
111OPTION(3, 464 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 471, 0, 0, 0, 0)
112OPTION(1, 497 /* -h */, anonymous_0, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 500, 0, 0, 0, 0)
113OPTION(3, 517 /* --source */, fetch_source, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 526, 0, 96, 0, 0)
114#endif // OPTION
115
116#ifdef SIMPLE_ENUM_VALUE_TABLE
117
118struct SimpleEnumValue {
119 const char *Name;
120 unsigned Value;
121};
122
123struct SimpleEnumValueTable {
124 const SimpleEnumValue *Table;
125 unsigned Size;
126};
127static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
128static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
129#endif // SIMPLE_ENUM_VALUE_TABLE
130