| 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 | "-add_rpath\0" |
| 25 | "Add new rpath\0" |
| 26 | "-change\0" |
| 27 | "Change dependent shared library install name\0" |
| 28 | "-delete_all_rpaths\0" |
| 29 | "Delete all rpath directives\0" |
| 30 | "-delete_rpath\0" |
| 31 | "Delete specified rpath\0" |
| 32 | "--help\0" |
| 33 | "-h\0" |
| 34 | "-id\0" |
| 35 | "Change dynamic shared library id\0" |
| 36 | "--output\0" |
| 37 | "Write output to <file>\0" |
| 38 | "<file>\0" |
| 39 | "-o\0" |
| 40 | "Alias for --output\0" |
| 41 | "-prepend_rpath\0" |
| 42 | "Add new rpath before other rpaths\0" |
| 43 | "-rpath\0" |
| 44 | "Change rpath path name\0" |
| 45 | "--version\0" |
| 46 | "Print the version and exit.\0" |
| 47 | "-V\0" |
| 48 | "Alias for --version\0" |
| 49 | ; |
| 50 | #ifdef __GNUC__ |
| 51 | #pragma GCC diagnostic pop |
| 52 | #endif |
| 53 | |
| 54 | static constexpr llvm::StringTable |
| 55 | OptionStrTable = OptionStrTableStorage; |
| 56 | #undef OPTTABLE_STR_TABLE_CODE |
| 57 | #endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE |
| 58 | |
| 59 | ///////// |
| 60 | // Tables |
| 61 | |
| 62 | #ifdef OPTTABLE_CODE |
| 63 | static llvm::opt::OptTable::Tables optionTables() { |
| 64 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 65 | 0 /* prefixes */, |
| 66 | 1 /* prefixes */, 1 /* '-' */, |
| 67 | 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */, |
| 68 | 1 /* prefixes */, 3 /* '--' */ |
| 69 | }; |
| 70 | |
| 71 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 72 | {0, 0}, |
| 73 | }; |
| 74 | |
| 75 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 76 | 0 /* subcommands */ |
| 77 | }; |
| 78 | |
| 79 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 80 | {0, 0, 0, 0, 0}, |
| 81 | {265, 0, 0, 0, 0}, |
| 82 | }; |
| 83 | |
| 84 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 85 | {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0}, |
| 86 | {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0}, |
| 87 | {24 /* -add_rpath */, 35, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::SeparateClass, 0}, |
| 88 | {49 /* -change */, 57, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::MultiArgClass, 2}, |
| 89 | {102 /* -delete_all_rpaths */, 121, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 90 | {149 /* -delete_rpath */, 163, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::SeparateClass, 0}, |
| 91 | {186 /* --help */, 0, 0, DefaultVis, 6, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 92 | {193 /* -h */, 0, 0, DefaultVis, 1, 0, 7, 0, llvm::opt::Option::FlagClass, 0}, |
| 93 | {196 /* -id */, 200, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::SeparateClass, 0}, |
| 94 | {233 /* --output */, 242, 0, DefaultVis, 6, 0, 0, 1, llvm::opt::Option::SeparateClass, 0}, |
| 95 | {272 /* -o */, 275, 0, DefaultVis, 1, 0, 10, 1, llvm::opt::Option::JoinedOrSeparateClass, 0}, |
| 96 | {294 /* -prepend_rpath */, 309, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::SeparateClass, 0}, |
| 97 | {343 /* -rpath */, 350, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::MultiArgClass, 2}, |
| 98 | {373 /* --version */, 383, 0, DefaultVis, 6, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 99 | {411 /* -V */, 414, 0, DefaultVis, 1, 0, 14, 0, llvm::opt::Option::FlagClass, 0}, |
| 100 | }; |
| 101 | |
| 102 | return {OptionStrTableStorage, OptionPrefixesTable, |
| 103 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 104 | } |
| 105 | #undef OPTTABLE_CODE |
| 106 | #endif // OPTTABLE_CODE |
| 107 | |
| 108 | ///////// |
| 109 | // ValuesCode |
| 110 | |
| 111 | #ifdef OPTTABLE_VALUES_CODE |
| 112 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 113 | switch (ID) { |
| 114 | } |
| 115 | return {}; |
| 116 | } |
| 117 | #undef OPTTABLE_VALUES_CODE |
| 118 | #endif // OPTTABLE_VALUES_CODE |
| 119 | ///////// |
| 120 | // Groups |
| 121 | |
| 122 | #ifdef OPTION |
| 123 | |
| 124 | ////////// |
| 125 | // Options |
| 126 | |
| 127 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 128 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 129 | OPTION(3, 24 /* -add_rpath */, add_rpath, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 35, 0, 0, 0, 0) |
| 130 | OPTION(3, 49 /* -change */, change, MultiArg, INVALID, INVALID, 0, 0, DefaultVis, 2, 57, 0, 0, 0, 0) |
| 131 | OPTION(3, 102 /* -delete_all_rpaths */, delete_all_rpaths, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 121, 0, 0, 0, 0) |
| 132 | OPTION(3, 149 /* -delete_rpath */, delete_rpath, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 163, 0, 0, 0, 0) |
| 133 | OPTION(6, 186 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 134 | OPTION(1, 193 /* -h */, h, Flag, INVALID, help, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 135 | OPTION(3, 196 /* -id */, id, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 200, 0, 0, 0, 0) |
| 136 | OPTION(6, 233 /* --output */, output, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 242, 0, 265, 0, 0) |
| 137 | OPTION(1, 272 /* -o */, o, JoinedOrSeparate, INVALID, output, 0, 0, DefaultVis, 0, 275, 0, 265, 0, 0) |
| 138 | OPTION(3, 294 /* -prepend_rpath */, prepend_rpath, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 309, 0, 0, 0, 0) |
| 139 | OPTION(3, 343 /* -rpath */, rpath, MultiArg, INVALID, INVALID, 0, 0, DefaultVis, 2, 350, 0, 0, 0, 0) |
| 140 | OPTION(6, 373 /* --version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 383, 0, 0, 0, 0) |
| 141 | OPTION(1, 411 /* -V */, V, Flag, INVALID, version, 0, 0, DefaultVis, 0, 414, 0, 0, 0, 0) |
| 142 | #endif // OPTION |
| 143 | |
| 144 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 145 | |
| 146 | struct SimpleEnumValue { |
| 147 | const char *Name; |
| 148 | unsigned Value; |
| 149 | }; |
| 150 | |
| 151 | struct SimpleEnumValueTable { |
| 152 | const SimpleEnumValue *Table; |
| 153 | unsigned Size; |
| 154 | }; |
| 155 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 156 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 157 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 158 | |