| 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 | "<input>\0" |
| 23 | "<unknown>\0" |
| 24 | "-###\0" |
| 25 | "--codepage=\0" |
| 26 | "--codepage\0" |
| 27 | "-c\0" |
| 28 | "--define=\0" |
| 29 | "--define\0" |
| 30 | "-D\0" |
| 31 | "-F\0" |
| 32 | "--help\0" |
| 33 | "-h\0" |
| 34 | "--include-dir=\0" |
| 35 | "--include-dir\0" |
| 36 | "--include=\0" |
| 37 | "--include\0" |
| 38 | "--input-format=\0" |
| 39 | "--input-format\0" |
| 40 | "--input=\0" |
| 41 | "--input\0" |
| 42 | "-I\0" |
| 43 | "-i\0" |
| 44 | "-J\0" |
| 45 | "--language=\0" |
| 46 | "--language\0" |
| 47 | "-l\0" |
| 48 | "--no-preprocess\0" |
| 49 | "--output-format=\0" |
| 50 | "--output-format\0" |
| 51 | "--output=\0" |
| 52 | "--output\0" |
| 53 | "-O\0" |
| 54 | "-o\0" |
| 55 | "--preprocessor-arg=\0" |
| 56 | "--preprocessor-arg\0" |
| 57 | "--preprocessor=\0" |
| 58 | "--preprocessor\0" |
| 59 | "--target=\0" |
| 60 | "--target\0" |
| 61 | "--undefine=\0" |
| 62 | "--undefine\0" |
| 63 | "--use-temp-file\0" |
| 64 | "-U\0" |
| 65 | "--verbose\0" |
| 66 | "--version\0" |
| 67 | "-V\0" |
| 68 | "-v\0" |
| 69 | ; |
| 70 | #ifdef __GNUC__ |
| 71 | #pragma GCC diagnostic pop |
| 72 | #endif |
| 73 | |
| 74 | static constexpr llvm::StringTable OptionStrTable = |
| 75 | OptionStrTableStorage; |
| 76 | #endif // OPTTABLE_STR_TABLE_CODE |
| 77 | |
| 78 | ///////// |
| 79 | // Prefixes |
| 80 | |
| 81 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 82 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 83 | 0 /* prefixes */, |
| 84 | 1 /* prefixes */, 1 /* '-' */, |
| 85 | 1 /* prefixes */, 3 /* '--' */ |
| 86 | }; |
| 87 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 88 | |
| 89 | ///////// |
| 90 | // Prefix Union |
| 91 | |
| 92 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 93 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 94 | 1 /* '-' */, 3 /* '--' */ |
| 95 | }; |
| 96 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 97 | |
| 98 | ///////// |
| 99 | // ValuesCode |
| 100 | |
| 101 | #ifdef OPTTABLE_VALUES_CODE |
| 102 | #endif |
| 103 | ///////// |
| 104 | // Groups |
| 105 | |
| 106 | #ifdef OPTION |
| 107 | |
| 108 | ////////// |
| 109 | // Options |
| 110 | |
| 111 | OPTION(0, 6 /* <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) |
| 112 | OPTION(0, 14 /* <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) |
| 113 | OPTION(1, 24 /* -### */, _HASH_HASH_HASH, Flag, 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) |
| 114 | OPTION(3, 29 /* --codepage= */, codepage_eq, Joined, INVALID, codepage, nullptr, 0, DefaultVis, 0, |
| 115 | "Default codepage to use" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 116 | OPTION(3, 41 /* --codepage */, codepage, Separate, 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) |
| 117 | OPTION(1, 52 /* -c */, codepage_short, JoinedOrSeparate, INVALID, codepage, 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) |
| 118 | OPTION(3, 55 /* --define= */, define_eq, Joined, INVALID, define, nullptr, 0, DefaultVis, 0, |
| 119 | "Define to pass to the preprocessor" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 120 | OPTION(3, 65 /* --define */, define, Separate, 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) |
| 121 | OPTION(1, 74 /* -D */, define_short, JoinedOrSeparate, INVALID, define, 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) |
| 122 | OPTION(1, 77 /* -F */, target_short, JoinedOrSeparate, INVALID, target, 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) |
| 123 | OPTION(3, 80 /* --help */, help_long, Flag, INVALID, help, nullptr, 0, DefaultVis, 0, |
| 124 | "Display this message and exit" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 125 | OPTION(1, 87 /* -h */, help, Flag, 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) |
| 126 | OPTION(3, 90 /* --include-dir= */, include_dir_eq, Joined, INVALID, include_dir, nullptr, 0, DefaultVis, 0, |
| 127 | "Include directory" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 128 | OPTION(3, 105 /* --include-dir */, include_dir, Separate, 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) |
| 129 | OPTION(3, 119 /* --include= */, include_alias_eq, Joined, INVALID, include_dir, 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) |
| 130 | OPTION(3, 130 /* --include */, include_alias, Separate, INVALID, include_dir, 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) |
| 131 | OPTION(3, 140 /* --input-format= */, input_format_eq, Joined, INVALID, input_format, nullptr, 0, DefaultVis, 0, |
| 132 | "Input format" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 133 | OPTION(3, 156 /* --input-format */, input_format, Separate, 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) |
| 134 | OPTION(3, 171 /* --input= */, input_eq, Joined, INVALID, input, nullptr, 0, DefaultVis, 0, |
| 135 | "Input file" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 136 | OPTION(3, 180 /* --input */, input, Separate, 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) |
| 137 | OPTION(1, 188 /* -I */, include_dir_short, JoinedOrSeparate, INVALID, include_dir, 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) |
| 138 | OPTION(1, 191 /* -i */, input_short, JoinedOrSeparate, INVALID, input, 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) |
| 139 | OPTION(1, 194 /* -J */, input_format_short, JoinedOrSeparate, INVALID, input_format, 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) |
| 140 | OPTION(3, 197 /* --language= */, language_eq, Joined, INVALID, language, nullptr, 0, DefaultVis, 0, |
| 141 | "Default language to use (0x0-0xffff)" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 142 | OPTION(3, 209 /* --language */, language, Separate, 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) |
| 143 | OPTION(1, 220 /* -l */, language_short, JoinedOrSeparate, INVALID, language, 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) |
| 144 | OPTION(3, 223 /* --no-preprocess */, no_preprocess, Flag, 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) |
| 145 | OPTION(3, 239 /* --output-format= */, output_format_eq, Joined, INVALID, output_format, nullptr, 0, DefaultVis, 0, |
| 146 | "Output format" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 147 | OPTION(3, 256 /* --output-format */, output_format, Separate, 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) |
| 148 | OPTION(3, 272 /* --output= */, output_eq, Joined, INVALID, output, nullptr, 0, DefaultVis, 0, |
| 149 | "Output file" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 150 | OPTION(3, 282 /* --output */, output, Separate, 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) |
| 151 | OPTION(1, 291 /* -O */, output_format_short, JoinedOrSeparate, INVALID, output_format, 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) |
| 152 | OPTION(1, 294 /* -o */, output_short, JoinedOrSeparate, INVALID, output, 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) |
| 153 | OPTION(3, 297 /* --preprocessor-arg= */, preprocessor_arg_eq, Joined, INVALID, preprocessor_arg, nullptr, 0, DefaultVis, 0, |
| 154 | "Preprocessor command argument" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 155 | OPTION(3, 317 /* --preprocessor-arg */, preprocessor_arg, Separate, 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) |
| 156 | OPTION(3, 336 /* --preprocessor= */, preprocessor_eq, Joined, INVALID, preprocessor, nullptr, 0, DefaultVis, 0, |
| 157 | "Custom preprocessor command" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 158 | OPTION(3, 352 /* --preprocessor */, preprocessor, Separate, 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) |
| 159 | OPTION(3, 367 /* --target= */, target_eq, Joined, INVALID, target, nullptr, 0, DefaultVis, 0, |
| 160 | "Target BFD format name" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 161 | OPTION(3, 377 /* --target */, target, Separate, 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) |
| 162 | OPTION(3, 386 /* --undefine= */, undef_eq, Joined, INVALID, undef, nullptr, 0, DefaultVis, 0, |
| 163 | "Undefine to pass to the preprocessor" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 164 | OPTION(3, 398 /* --undefine */, undef, Separate, 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) |
| 165 | OPTION(3, 409 /* --use-temp-file */, use_temp_file, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 166 | "Mimic GNU windres preprocessor option handling (don't unescape preprocessor options)" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 167 | OPTION(1, 425 /* -U */, undef_short, JoinedOrSeparate, INVALID, undef, 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) |
| 168 | OPTION(3, 428 /* --verbose */, verbose_long, Flag, INVALID, verbose, nullptr, 0, DefaultVis, 0, |
| 169 | "Enable verbose output" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 170 | OPTION(3, 438 /* --version */, version_long, Flag, INVALID, version, nullptr, 0, DefaultVis, 0, |
| 171 | "Display version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 172 | OPTION(1, 448 /* -V */, version, Flag, 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) |
| 173 | OPTION(1, 451 /* -v */, verbose, Flag, 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) |
| 174 | #endif // OPTION |
| 175 | |
| 176 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 177 | |
| 178 | struct SimpleEnumValue { |
| 179 | const char *Name; |
| 180 | unsigned Value; |
| 181 | }; |
| 182 | |
| 183 | struct SimpleEnumValueTable { |
| 184 | const SimpleEnumValue *Table; |
| 185 | unsigned Size; |
| 186 | }; |
| 187 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 188 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 189 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 190 | |
| 191 | |
| 192 | |