| 1 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 2 | |* *| |
| 3 | |* Option Parsing Definitions *| |
| 4 | |* *| |
| 5 | |* Automatically generated file, do not edit! *| |
| 6 | |* *| |
| 7 | \*===----------------------------------------------------------------------===*/ |
| 8 | |
| 9 | ///////// |
| 10 | // Tables |
| 11 | |
| 12 | #ifdef OPTTABLE_CODE |
| 13 | static llvm::opt::OptTable::Tables optionTables() { |
| 14 | |
| 15 | #ifdef __GNUC__ |
| 16 | #pragma GCC diagnostic push |
| 17 | #pragma GCC diagnostic ignored "-Woverlength-strings" |
| 18 | #endif |
| 19 | static constexpr char OptionStrTableStorage[] = |
| 20 | "\0" |
| 21 | "-\0" |
| 22 | "--\0" |
| 23 | "<input>\0" |
| 24 | "<unknown>\0" |
| 25 | "--help\0" |
| 26 | "Display this help\0" |
| 27 | "-h\0" |
| 28 | "Alias for --help\0" |
| 29 | "--leading-lines\0" |
| 30 | "Preserve line numbers\0" |
| 31 | "--no-leading-lines\0" |
| 32 | "Don't preserve line numbers (default)\0" |
| 33 | "--version\0" |
| 34 | "Display the version\0" |
| 35 | ; |
| 36 | #ifdef __GNUC__ |
| 37 | #pragma GCC diagnostic pop |
| 38 | #endif |
| 39 | |
| 40 | static constexpr llvm::StringTable |
| 41 | OptionStrTable = OptionStrTableStorage; |
| 42 | |
| 43 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 44 | 0 /* prefixes */, |
| 45 | 1 /* prefixes */, 1 /* '-' */, |
| 46 | 1 /* prefixes */, 3 /* '--' */ |
| 47 | }; |
| 48 | |
| 49 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 50 | {0, 0}, |
| 51 | }; |
| 52 | |
| 53 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 54 | 0 /* subcommands */ |
| 55 | }; |
| 56 | |
| 57 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 58 | {0, 0, 0, 0, 0, 0, 0, 0}, |
| 59 | {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 60 | }; |
| 61 | |
| 62 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 63 | {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass}, |
| 64 | {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass}, |
| 65 | {24 /* --help */, 31, 0, 0, 1, 3, llvm::opt::Option::FlagClass}, |
| 66 | {49 /* -h */, 52, 0, 3, 1, 1, llvm::opt::Option::FlagClass}, |
| 67 | {69 /* --leading-lines */, 85, 0, 0, 1, 3, llvm::opt::Option::FlagClass}, |
| 68 | {107 /* --no-leading-lines */, 126, 0, 0, 1, 3, llvm::opt::Option::FlagClass}, |
| 69 | {164 /* --version */, 174, 0, 0, 1, 3, llvm::opt::Option::FlagClass}, |
| 70 | }; |
| 71 | |
| 72 | return {OptionStrTable, OptionPrefixesTable, |
| 73 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 74 | } |
| 75 | #undef OPTTABLE_CODE |
| 76 | #endif // OPTTABLE_CODE |
| 77 | |
| 78 | ///////// |
| 79 | // ValuesCode |
| 80 | |
| 81 | #ifdef OPTTABLE_VALUES_CODE |
| 82 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 83 | switch (ID) { |
| 84 | } |
| 85 | return {}; |
| 86 | } |
| 87 | #undef OPTTABLE_VALUES_CODE |
| 88 | #endif // OPTTABLE_VALUES_CODE |
| 89 | ///////// |
| 90 | // Groups |
| 91 | |
| 92 | #ifdef OPTION |
| 93 | |
| 94 | ////////// |
| 95 | // Options |
| 96 | |
| 97 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 98 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 99 | OPTION(3, 24 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 31, 0, 0, 0, 0) |
| 100 | OPTION(1, 49 /* -h */, anonymous_0, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 52, 0, 0, 0, 0) |
| 101 | OPTION(3, 69 /* --leading-lines */, leading_lines, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 85, 0, 0, 0, 0) |
| 102 | OPTION(3, 107 /* --no-leading-lines */, no_leading_lines, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 126, 0, 0, 0, 0) |
| 103 | OPTION(3, 164 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 174, 0, 0, 0, 0) |
| 104 | #endif // OPTION |
| 105 | |
| 106 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 107 | |
| 108 | struct SimpleEnumValue { |
| 109 | const char *Name; |
| 110 | unsigned Value; |
| 111 | }; |
| 112 | |
| 113 | struct SimpleEnumValueTable { |
| 114 | const SimpleEnumValue *Table; |
| 115 | unsigned Size; |
| 116 | }; |
| 117 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 118 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 119 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 120 | |