| 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 | "-_\0" |
| 25 | "Alias for --strip-underscore\0" |
| 26 | "--format=\0" |
| 27 | "Specify mangling format. Currently ignored because only 'gnu' is supported\0" |
| 28 | "--format\0" |
| 29 | "--help\0" |
| 30 | "Display this help\0" |
| 31 | "-h\0" |
| 32 | "Alias for --help\0" |
| 33 | "--no-params\0" |
| 34 | "Skip function parameters and return types\0" |
| 35 | "--no-strip-underscore\0" |
| 36 | "Don't strip the leading underscore\0" |
| 37 | "-n\0" |
| 38 | "Alias for --no-strip-underscore\0" |
| 39 | "-p\0" |
| 40 | "Alias for --no-params\0" |
| 41 | "--quote\0" |
| 42 | "Quote demangled names with \" \" if not already quoted\0" |
| 43 | "--strip-underscore\0" |
| 44 | "Strip the leading underscore\0" |
| 45 | "-s\0" |
| 46 | "Alias for --format\0" |
| 47 | "--types\0" |
| 48 | "Attempt to demangle types as well as symbol names\0" |
| 49 | "-t\0" |
| 50 | "Alias for --types\0" |
| 51 | "--version\0" |
| 52 | "Display the version\0" |
| 53 | ; |
| 54 | #ifdef __GNUC__ |
| 55 | #pragma GCC diagnostic pop |
| 56 | #endif |
| 57 | |
| 58 | static constexpr llvm::StringTable |
| 59 | OptionStrTable = OptionStrTableStorage; |
| 60 | #undef OPTTABLE_STR_TABLE_CODE |
| 61 | #endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE |
| 62 | |
| 63 | ///////// |
| 64 | // Tables |
| 65 | |
| 66 | #ifdef OPTTABLE_CODE |
| 67 | static llvm::opt::OptTable::Tables optionTables() { |
| 68 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 69 | 0 /* prefixes */, |
| 70 | 1 /* prefixes */, 1 /* '-' */, |
| 71 | 1 /* prefixes */, 3 /* '--' */ |
| 72 | }; |
| 73 | |
| 74 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 75 | {0, 0}, |
| 76 | }; |
| 77 | |
| 78 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 79 | 0 /* subcommands */ |
| 80 | }; |
| 81 | |
| 82 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 83 | {0, 0, 0, 0, 0}, |
| 84 | }; |
| 85 | |
| 86 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 87 | {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0}, |
| 88 | {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0}, |
| 89 | {24 /* -_ */, 27, 0, DefaultVis, 1, 0, 13, 0, llvm::opt::Option::FlagClass, 0}, |
| 90 | {56 /* --format= */, 66, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::JoinedClass, 0}, |
| 91 | {141 /* --format */, 0, 0, DefaultVis, 3, 0, 4, 0, llvm::opt::Option::SeparateClass, 0}, |
| 92 | {150 /* --help */, 157, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 93 | {175 /* -h */, 178, 0, DefaultVis, 1, 0, 6, 0, llvm::opt::Option::FlagClass, 0}, |
| 94 | {195 /* --no-params */, 207, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 95 | {249 /* --no-strip-underscore */, 271, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 96 | {306 /* -n */, 309, 0, DefaultVis, 1, 0, 9, 0, llvm::opt::Option::FlagClass, 0}, |
| 97 | {341 /* -p */, 344, 0, DefaultVis, 1, 0, 8, 0, llvm::opt::Option::FlagClass, 0}, |
| 98 | {366 /* --quote */, 374, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 99 | {427 /* --strip-underscore */, 446, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 100 | {475 /* -s */, 478, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 101 | {497 /* --types */, 505, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 102 | {555 /* -t */, 558, 0, DefaultVis, 1, 0, 15, 0, llvm::opt::Option::FlagClass, 0}, |
| 103 | {576 /* --version */, 586, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 104 | }; |
| 105 | |
| 106 | return {OptionStrTableStorage, OptionPrefixesTable, |
| 107 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 108 | } |
| 109 | #undef OPTTABLE_CODE |
| 110 | #endif // OPTTABLE_CODE |
| 111 | |
| 112 | ///////// |
| 113 | // ValuesCode |
| 114 | |
| 115 | #ifdef OPTTABLE_VALUES_CODE |
| 116 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 117 | switch (ID) { |
| 118 | } |
| 119 | return {}; |
| 120 | } |
| 121 | #undef OPTTABLE_VALUES_CODE |
| 122 | #endif // OPTTABLE_VALUES_CODE |
| 123 | ///////// |
| 124 | // Groups |
| 125 | |
| 126 | #ifdef OPTION |
| 127 | |
| 128 | ////////// |
| 129 | // Options |
| 130 | |
| 131 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 132 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 133 | OPTION(1, 24 /* -_ */, anonymous_3, Flag, INVALID, strip_underscore, 0, 0, DefaultVis, 0, 27, 0, 0, 0, 0) |
| 134 | OPTION(3, 56 /* --format= */, anonymous_1_EQ, Joined, INVALID, INVALID, 0, 0, DefaultVis, 0, 66, 0, 0, 0, 0) |
| 135 | OPTION(3, 141 /* --format */, anonymous_0, Separate, INVALID, anonymous_1_EQ, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 136 | OPTION(3, 150 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 157, 0, 0, 0, 0) |
| 137 | OPTION(1, 175 /* -h */, anonymous_4, Flag, INVALID, help, 0, 0, DefaultVis, 0, 178, 0, 0, 0, 0) |
| 138 | OPTION(3, 195 /* --no-params */, no_params, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 207, 0, 0, 0, 0) |
| 139 | OPTION(3, 249 /* --no-strip-underscore */, no_strip_underscore, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 271, 0, 0, 0, 0) |
| 140 | OPTION(1, 306 /* -n */, anonymous_5, Flag, INVALID, no_strip_underscore, 0, 0, DefaultVis, 0, 309, 0, 0, 0, 0) |
| 141 | OPTION(1, 341 /* -p */, anonymous_6, Flag, INVALID, no_params, 0, 0, DefaultVis, 0, 344, 0, 0, 0, 0) |
| 142 | OPTION(3, 366 /* --quote */, quote, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 374, 0, 0, 0, 0) |
| 143 | OPTION(3, 427 /* --strip-underscore */, strip_underscore, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 446, 0, 0, 0, 0) |
| 144 | OPTION(1, 475 /* -s */, anonymous_2, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 478, 0, 0, 0, 0) |
| 145 | OPTION(3, 497 /* --types */, types, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 505, 0, 0, 0, 0) |
| 146 | OPTION(1, 555 /* -t */, anonymous_7, Flag, INVALID, types, 0, 0, DefaultVis, 0, 558, 0, 0, 0, 0) |
| 147 | OPTION(3, 576 /* --version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 586, 0, 0, 0, 0) |
| 148 | #endif // OPTION |
| 149 | |
| 150 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 151 | |
| 152 | struct SimpleEnumValue { |
| 153 | const char *Name; |
| 154 | unsigned Value; |
| 155 | }; |
| 156 | |
| 157 | struct SimpleEnumValueTable { |
| 158 | const SimpleEnumValue *Table; |
| 159 | unsigned Size; |
| 160 | }; |
| 161 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 162 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 163 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 164 | |