| 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 | "/\0" |
| 23 | "/?\0" |
| 24 | "<input>\0" |
| 25 | "<unknown>\0" |
| 26 | "/DEFINE:\0" |
| 27 | "/FOLDDUPS:\0" |
| 28 | "/HELP\0" |
| 29 | "/H\0" |
| 30 | "/MACHINE:\0" |
| 31 | "/NOLOGO\0" |
| 32 | "/OUT:\0" |
| 33 | "/READONLY\0" |
| 34 | "/TIMESTAMP:\0" |
| 35 | "/VERBOSE\0" |
| 36 | ; |
| 37 | #ifdef __GNUC__ |
| 38 | #pragma GCC diagnostic pop |
| 39 | #endif |
| 40 | |
| 41 | static constexpr llvm::StringTable OptionStrTable = |
| 42 | OptionStrTableStorage; |
| 43 | #endif // OPTTABLE_STR_TABLE_CODE |
| 44 | |
| 45 | ///////// |
| 46 | // Prefixes |
| 47 | |
| 48 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 49 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 50 | 0 /* prefixes */, |
| 51 | 2 /* prefixes */, 6 /* '/' */, 1 /* '-' */, |
| 52 | 2 /* prefixes */, 8 /* '/?' */, 3 /* '-?' */ |
| 53 | }; |
| 54 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 55 | |
| 56 | ///////// |
| 57 | // Prefix Union |
| 58 | |
| 59 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 60 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 61 | 1 /* '-' */, 3 /* '-?' */, 6 /* '/' */, 8 /* '/?' */ |
| 62 | }; |
| 63 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 64 | |
| 65 | ///////// |
| 66 | // ValuesCode |
| 67 | |
| 68 | #ifdef OPTTABLE_VALUES_CODE |
| 69 | #endif |
| 70 | ///////// |
| 71 | // Groups |
| 72 | |
| 73 | #ifdef OPTION |
| 74 | |
| 75 | ////////// |
| 76 | // Options |
| 77 | |
| 78 | OPTION(0, 11 /* <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) |
| 79 | OPTION(0, 19 /* <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) |
| 80 | OPTION(1, 29 /* /DEFINE: */, DEFINE, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 81 | "Not implemented" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "symbol" , nullptr) |
| 82 | OPTION(1, 38 /* /FOLDDUPS: */, FOLDDUPS, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 83 | "Not implemented" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 84 | OPTION(1, 49 /* /HELP */, HELP, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 85 | "Display available options" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 86 | OPTION(1, 55 /* /H */, H, Flag, INVALID, HELP, 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) |
| 87 | OPTION(1, 58 /* /MACHINE: */, MACHINE, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 88 | "Machine architecture" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "{ARM|ARM64|EBC|IA64|X64|X86}" , nullptr) |
| 89 | OPTION(1, 68 /* /NOLOGO */, NOLOGO, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 90 | "Not implemented" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 91 | OPTION(1, 76 /* /OUT: */, OUT, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 92 | "Output file" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "filename" , nullptr) |
| 93 | OPTION(1, 82 /* /READONLY */, READONLY, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 94 | "Not implemented" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 95 | OPTION(1, 92 /* /TIMESTAMP: */, TIMESTAMP, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 96 | "Timestamp for coff header, defaults to current time" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 97 | OPTION(1, 104 /* /VERBOSE */, VERBOSE, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 98 | "Use verbose output" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 99 | OPTION(4, 8 /* /? */, HELP_Q, Flag, INVALID, HELP, 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) |
| 100 | #endif // OPTION |
| 101 | |
| 102 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 103 | |
| 104 | struct SimpleEnumValue { |
| 105 | const char *Name; |
| 106 | unsigned Value; |
| 107 | }; |
| 108 | |
| 109 | struct SimpleEnumValueTable { |
| 110 | const SimpleEnumValue *Table; |
| 111 | unsigned Size; |
| 112 | }; |
| 113 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 114 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 115 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 116 | |
| 117 | |
| 118 | |