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 | #ifdef OPTTABLE_STR_TABLE_CODE |
13 | |
14 | #ifdef __GNUC__ |
15 | #pragma GCC diagnostic push |
16 | #pragma GCC diagnostic ignored "-Woverlength-strings" |
17 | #endif |
18 | static constexpr char OptionStrTableStorage[] = |
19 | "\0" |
20 | "-\0" |
21 | "--\0" |
22 | "<input>\0" |
23 | "<unknown>\0" |
24 | "--debug-file-directory\0" |
25 | "--debuginfo\0" |
26 | "--dump\0" |
27 | "--executable\0" |
28 | "--help\0" |
29 | "-h\0" |
30 | "--source\0" |
31 | ; |
32 | #ifdef __GNUC__ |
33 | #pragma GCC diagnostic pop |
34 | #endif |
35 | |
36 | static constexpr llvm::StringTable OptionStrTable = |
37 | OptionStrTableStorage; |
38 | #endif // OPTTABLE_STR_TABLE_CODE |
39 | |
40 | ///////// |
41 | // Prefixes |
42 | |
43 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
44 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
45 | 0 /* prefixes */, |
46 | 1 /* prefixes */, 1 /* '-' */, |
47 | 1 /* prefixes */, 3 /* '--' */ |
48 | }; |
49 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
50 | |
51 | ///////// |
52 | // Prefix Union |
53 | |
54 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
55 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
56 | 1 /* '-' */, 3 /* '--' */ |
57 | }; |
58 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
59 | |
60 | ///////// |
61 | // ValuesCode |
62 | |
63 | #ifdef OPTTABLE_VALUES_CODE |
64 | #endif |
65 | ///////// |
66 | // Groups |
67 | |
68 | #ifdef OPTION |
69 | |
70 | ////////// |
71 | // Options |
72 | |
73 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
74 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
75 | OPTION(3, 24 /* --debug-file-directory */, debug_file_directory, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
76 | "Path to directory where to look for debug files." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<string>" , nullptr) |
77 | OPTION(3, 47 /* --debuginfo */, fetch_debuginfo, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
78 | "If set, fetch a binary file associated with this build id, containing the debuginfo sections." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
79 | OPTION(3, 59 /* --dump */, dump_to_stdout, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
80 | "If set, dumps the contents of the fetched artifact to standard output. Otherwise, dumps the absolute path to the cached artifact on disk." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
81 | OPTION(3, 66 /* --executable */, fetch_executable, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
82 | "If set, fetch a binary file associated with this build id, containing the executable sections." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
83 | OPTION(3, 79 /* --help */, help, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
84 | "Display available options" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
85 | OPTION(1, 86 /* -h */, anonymous_0, Flag, INVALID, help, nullptr, 0, DefaultVis, 0, |
86 | "Alias for --help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
87 | OPTION(3, 89 /* --source */, fetch_source, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
88 | "Fetch a source file associated with this build id, which is at this relative path relative to the compilation directory." , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<string>" , nullptr) |
89 | #endif // OPTION |
90 | |
91 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
92 | |
93 | struct SimpleEnumValue { |
94 | const char *Name; |
95 | unsigned Value; |
96 | }; |
97 | |
98 | struct SimpleEnumValueTable { |
99 | const SimpleEnumValue *Table; |
100 | unsigned Size; |
101 | }; |
102 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
103 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
104 | #endif // SIMPLE_ENUM_VALUE_TABLE |
105 | |
106 | |
107 | |