| 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 |
| 37 | OptionStrTable = 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 | /////////// SubCommand IDs |
| 52 | |
| 53 | #ifdef OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 54 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 55 | 0 /* subcommands */ |
| 56 | }; |
| 57 | #endif // OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 58 | |
| 59 | ///////// |
| 60 | // Prefix Union |
| 61 | |
| 62 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 63 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 64 | 1 /* '-' */, 3 /* '--' */ |
| 65 | }; |
| 66 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 67 | |
| 68 | ///////// |
| 69 | // ValuesCode |
| 70 | |
| 71 | #ifdef OPTTABLE_VALUES_CODE |
| 72 | #endif |
| 73 | ///////// |
| 74 | // Groups |
| 75 | |
| 76 | #ifdef OPTION |
| 77 | |
| 78 | ////////// |
| 79 | // Options |
| 80 | |
| 81 | 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, 0) |
| 82 | 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, 0) |
| 83 | OPTION(3, 24 /* --debug-file-directory */, debug_file_directory, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 84 | "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, 0) |
| 85 | OPTION(3, 47 /* --debuginfo */, fetch_debuginfo, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 86 | "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, 0) |
| 87 | OPTION(3, 59 /* --dump */, dump_to_stdout, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 88 | "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, 0) |
| 89 | OPTION(3, 66 /* --executable */, fetch_executable, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 90 | "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, 0) |
| 91 | OPTION(3, 79 /* --help */, help, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 92 | "Display available options" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 93 | OPTION(1, 86 /* -h */, anonymous_0, Flag, INVALID, help, nullptr, 0, DefaultVis, 0, |
| 94 | "Alias for --help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 95 | OPTION(3, 89 /* --source */, fetch_source, Separate, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 96 | "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, 0) |
| 97 | #endif // OPTION |
| 98 | |
| 99 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 100 | |
| 101 | struct SimpleEnumValue { |
| 102 | const char *Name; |
| 103 | unsigned Value; |
| 104 | }; |
| 105 | |
| 106 | struct SimpleEnumValueTable { |
| 107 | const SimpleEnumValue *Table; |
| 108 | unsigned Size; |
| 109 | }; |
| 110 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 111 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 112 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 113 | |
| 114 | ///////// |
| 115 | |
| 116 | // SubCommands |
| 117 | |
| 118 | #ifdef OPTTABLE_SUBCOMMANDS_CODE |
| 119 | static constexpr llvm::opt::OptTable::SubCommand OptionSubCommands[] = { |
| 120 | }; |
| 121 | #endif // OPTTABLE_SUBCOMMANDS_CODE |
| 122 | |
| 123 | |
| 124 | |