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