| 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 | "/?\0" |
| 24 | "-?\0" |
| 25 | "<input>\0" |
| 26 | "<unknown>\0" |
| 27 | "/DEFINE:\0" |
| 28 | "Not implemented\0" |
| 29 | "symbol\0" |
| 30 | "/FOLDDUPS:\0" |
| 31 | "/HELP\0" |
| 32 | "Display available options\0" |
| 33 | "/H\0" |
| 34 | "/MACHINE:\0" |
| 35 | "Machine architecture\0" |
| 36 | "{ARM|ARM64|EBC|IA64|X64|X86}\0" |
| 37 | "/NOLOGO\0" |
| 38 | "/OUT:\0" |
| 39 | "Output file\0" |
| 40 | "filename\0" |
| 41 | "/READONLY\0" |
| 42 | "/TIMESTAMP:\0" |
| 43 | "Timestamp for coff header, defaults to current time\0" |
| 44 | "/VERBOSE\0" |
| 45 | "Use verbose output\0" |
| 46 | ; |
| 47 | #ifdef __GNUC__ |
| 48 | #pragma GCC diagnostic pop |
| 49 | #endif |
| 50 | |
| 51 | static constexpr llvm::StringTable |
| 52 | OptionStrTable = OptionStrTableStorage; |
| 53 | |
| 54 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 55 | 0 /* prefixes */, |
| 56 | 2 /* prefixes */, 1 /* '/' */, 3 /* '-' */, |
| 57 | 2 /* prefixes */, 5 /* '/?' */, 8 /* '-?' */ |
| 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, 0, 0, 0}, |
| 70 | {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 71 | {54, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 72 | {138, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 73 | {193, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0}, |
| 74 | }; |
| 75 | |
| 76 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 77 | {11 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass}, |
| 78 | {19 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass}, |
| 79 | {29 /* /DEFINE: */, 38, 0, 0, 2, 1, llvm::opt::Option::JoinedClass}, |
| 80 | {61 /* /FOLDDUPS: */, 38, 0, 0, 1, 1, llvm::opt::Option::FlagClass}, |
| 81 | {72 /* /HELP */, 78, 0, 0, 1, 1, llvm::opt::Option::FlagClass}, |
| 82 | {104 /* /H */, 0, 0, 5, 1, 1, llvm::opt::Option::FlagClass}, |
| 83 | {107 /* /MACHINE: */, 117, 0, 0, 3, 1, llvm::opt::Option::JoinedClass}, |
| 84 | {167 /* /NOLOGO */, 38, 0, 0, 1, 1, llvm::opt::Option::FlagClass}, |
| 85 | {175 /* /OUT: */, 181, 0, 0, 4, 1, llvm::opt::Option::JoinedClass}, |
| 86 | {202 /* /READONLY */, 38, 0, 0, 1, 1, llvm::opt::Option::FlagClass}, |
| 87 | {212 /* /TIMESTAMP: */, 224, 0, 0, 1, 1, llvm::opt::Option::JoinedClass}, |
| 88 | {276 /* /VERBOSE */, 285, 0, 0, 1, 1, llvm::opt::Option::FlagClass}, |
| 89 | {5 /* /? */, 0, 0, 5, 1, 4, llvm::opt::Option::FlagClass}, |
| 90 | }; |
| 91 | |
| 92 | return {OptionStrTable, OptionPrefixesTable, |
| 93 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 94 | } |
| 95 | #undef OPTTABLE_CODE |
| 96 | #endif // OPTTABLE_CODE |
| 97 | |
| 98 | ///////// |
| 99 | // ValuesCode |
| 100 | |
| 101 | #ifdef OPTTABLE_VALUES_CODE |
| 102 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 103 | switch (ID) { |
| 104 | } |
| 105 | return {}; |
| 106 | } |
| 107 | #undef OPTTABLE_VALUES_CODE |
| 108 | #endif // OPTTABLE_VALUES_CODE |
| 109 | ///////// |
| 110 | // Groups |
| 111 | |
| 112 | #ifdef OPTION |
| 113 | |
| 114 | ////////// |
| 115 | // Options |
| 116 | |
| 117 | OPTION(0, 11 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 118 | OPTION(0, 19 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 119 | OPTION(1, 29 /* /DEFINE: */, DEFINE, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 38, 0, 54, 0, 0) |
| 120 | OPTION(1, 61 /* /FOLDDUPS: */, FOLDDUPS, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 38, 0, 0, 0, 0) |
| 121 | OPTION(1, 72 /* /HELP */, HELP, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 78, 0, 0, 0, 0) |
| 122 | OPTION(1, 104 /* /H */, H, Flag, INVALID, HELP, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 123 | OPTION(1, 107 /* /MACHINE: */, MACHINE, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 117, 0, 138, 0, 0) |
| 124 | OPTION(1, 167 /* /NOLOGO */, NOLOGO, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 38, 0, 0, 0, 0) |
| 125 | OPTION(1, 175 /* /OUT: */, OUT, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 181, 0, 193, 0, 0) |
| 126 | OPTION(1, 202 /* /READONLY */, READONLY, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 38, 0, 0, 0, 0) |
| 127 | OPTION(1, 212 /* /TIMESTAMP: */, TIMESTAMP, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 224, 0, 0, 0, 0) |
| 128 | OPTION(1, 276 /* /VERBOSE */, VERBOSE, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 285, 0, 0, 0, 0) |
| 129 | OPTION(4, 5 /* /? */, HELP_Q, Flag, INVALID, HELP, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0) |
| 130 | #endif // OPTION |
| 131 | |
| 132 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 133 | |
| 134 | struct SimpleEnumValue { |
| 135 | const char *Name; |
| 136 | unsigned Value; |
| 137 | }; |
| 138 | |
| 139 | struct SimpleEnumValueTable { |
| 140 | const SimpleEnumValue *Table; |
| 141 | unsigned Size; |
| 142 | }; |
| 143 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 144 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 145 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 146 | |