| 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 | "-arch_only\0" |
| 25 | "Specify architecture type for output library\0" |
| 26 | "<arch_type>\0" |
| 27 | "-dependency_info\0" |
| 28 | "Write an Xcode dependency info file describing the dependencies of the created library\0" |
| 29 | "<string>\0" |
| 30 | "-D\0" |
| 31 | "Use zero for timestamps and UIDs/GIDs (Default)\0" |
| 32 | "-filelist\0" |
| 33 | "Pass in file containing a list of filenames\0" |
| 34 | "<listfile[,dirname]>\0" |
| 35 | "-help\0" |
| 36 | "Display this help\0" |
| 37 | "-h\0" |
| 38 | "\0" |
| 39 | "\0" |
| 40 | "-L\0" |
| 41 | "L<dir> adds <dir> to the list of directories in which to search for libraries\0" |
| 42 | "<dir>\0" |
| 43 | "-l\0" |
| 44 | "l<x> searches for the library libx.a in the library search path. If the string 'x' ends with '.o', then the library 'x' is searched for without prepending 'lib' or appending '.a'\0" |
| 45 | "<x>\0" |
| 46 | "-no_warning_for_no_symbols\0" |
| 47 | "Do not warn about files that have no symbols\0" |
| 48 | "-o\0" |
| 49 | "Specify output filename\0" |
| 50 | "<filename>\0" |
| 51 | "-static\0" |
| 52 | "Produce a statically linked library from the input files\0" |
| 53 | "-syslibroot\0" |
| 54 | "-U\0" |
| 55 | "Use actual timestamps and UIDs/GIDs\0" |
| 56 | "-version\0" |
| 57 | "Display the version of this program\0" |
| 58 | "-V\0" |
| 59 | "Print the version number and exit\0" |
| 60 | "-warnings_as_errors\0" |
| 61 | "Treat warnings as errors\0" |
| 62 | ; |
| 63 | #ifdef __GNUC__ |
| 64 | #pragma GCC diagnostic pop |
| 65 | #endif |
| 66 | |
| 67 | static constexpr llvm::StringTable |
| 68 | OptionStrTable = OptionStrTableStorage; |
| 69 | #undef OPTTABLE_STR_TABLE_CODE |
| 70 | #endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE |
| 71 | |
| 72 | ///////// |
| 73 | // Tables |
| 74 | |
| 75 | #ifdef OPTTABLE_CODE |
| 76 | static llvm::opt::OptTable::Tables optionTables() { |
| 77 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 78 | 0 /* prefixes */, |
| 79 | 2 /* prefixes */, 1 /* '-' */, 3 /* '--' */ |
| 80 | }; |
| 81 | |
| 82 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 83 | {0, 0}, |
| 84 | }; |
| 85 | |
| 86 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 87 | 0 /* subcommands */ |
| 88 | }; |
| 89 | |
| 90 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 91 | {0, 0, 0, 0, 0}, |
| 92 | {80, 0, 0, 0, 0}, |
| 93 | {196, 0, 0, 0, 0}, |
| 94 | {310, 0, 0, 0, 0}, |
| 95 | {441, 0, 0, 0, 0}, |
| 96 | {629, 0, 0, 0, 0}, |
| 97 | {732, 0, 0, 0, 0}, |
| 98 | }; |
| 99 | |
| 100 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 101 | {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0}, |
| 102 | {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0}, |
| 103 | {24 /* -arch_only */, 35, 0, DefaultVis, 1, 0, 0, 1, llvm::opt::Option::SeparateClass, 0}, |
| 104 | {92 /* -dependency_info */, 109, 0, DefaultVis, 1, 0, 0, 2, llvm::opt::Option::SeparateClass, 0}, |
| 105 | {205 /* -D */, 208, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 106 | {256 /* -filelist */, 266, 0, DefaultVis, 1, 0, 0, 3, llvm::opt::Option::SeparateClass, 0}, |
| 107 | {331 /* -help */, 337, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 108 | {355 /* -h */, 358, 0, DefaultVis, 1, 0, 7, 0, llvm::opt::Option::FlagClass, 0}, |
| 109 | {360 /* -L */, 363, 0, DefaultVis, 1, 0, 0, 4, llvm::opt::Option::JoinedOrSeparateClass, 0}, |
| 110 | {447 /* -l */, 450, 0, DefaultVis, 1, 0, 0, 5, llvm::opt::Option::JoinedOrSeparateClass, 0}, |
| 111 | {633 /* -no_warning_for_no_symbols */, 660, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 112 | {705 /* -o */, 708, 0, DefaultVis, 1, 0, 0, 6, llvm::opt::Option::SeparateClass, 0}, |
| 113 | {743 /* -static */, 751, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 114 | {808 /* -syslibroot */, 358, HelpHidden, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::SeparateClass, 0}, |
| 115 | {820 /* -U */, 823, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 116 | {859 /* -version */, 868, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 117 | {904 /* -V */, 907, 0, DefaultVis, 1, 0, 16, 0, llvm::opt::Option::FlagClass, 0}, |
| 118 | {941 /* -warnings_as_errors */, 961, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 119 | }; |
| 120 | |
| 121 | return {OptionStrTableStorage, OptionPrefixesTable, |
| 122 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 123 | } |
| 124 | #undef OPTTABLE_CODE |
| 125 | #endif // OPTTABLE_CODE |
| 126 | |
| 127 | ///////// |
| 128 | // ValuesCode |
| 129 | |
| 130 | #ifdef OPTTABLE_VALUES_CODE |
| 131 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 132 | switch (ID) { |
| 133 | } |
| 134 | return {}; |
| 135 | } |
| 136 | #undef OPTTABLE_VALUES_CODE |
| 137 | #endif // OPTTABLE_VALUES_CODE |
| 138 | ///////// |
| 139 | // Groups |
| 140 | |
| 141 | #ifdef OPTION |
| 142 | |
| 143 | ////////// |
| 144 | // Options |
| 145 | |
| 146 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 147 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 148 | OPTION(1, 24 /* -arch_only */, archType, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 35, 0, 80, 0, 0) |
| 149 | OPTION(1, 92 /* -dependency_info */, dependencyInfoPath, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 109, 0, 196, 0, 0) |
| 150 | OPTION(1, 205 /* -D */, deterministicOption, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 208, 0, 0, 0, 0) |
| 151 | OPTION(1, 256 /* -filelist */, fileList, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 266, 0, 310, 0, 0) |
| 152 | OPTION(1, 331 /* -help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 337, 0, 0, 0, 0) |
| 153 | OPTION(1, 355 /* -h */, anonymous_0, Flag, INVALID, help, 0, 0, DefaultVis, 0, 358, 0, 0, 0, 0) |
| 154 | OPTION(1, 360 /* -L */, librarySearchDirs, JoinedOrSeparate, INVALID, INVALID, 0, 0, DefaultVis, 0, 363, 0, 441, 0, 0) |
| 155 | OPTION(1, 447 /* -l */, libraries, JoinedOrSeparate, INVALID, INVALID, 0, 0, DefaultVis, 0, 450, 0, 629, 0, 0) |
| 156 | OPTION(1, 633 /* -no_warning_for_no_symbols */, noWarningForNoSymbols, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 660, 0, 0, 0, 0) |
| 157 | OPTION(1, 705 /* -o */, outputFile, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 708, 0, 732, 0, 0) |
| 158 | OPTION(1, 743 /* -static */, static, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 751, 0, 0, 0, 0) |
| 159 | OPTION(1, 808 /* -syslibroot */, ignoredSyslibRoot, Separate, INVALID, INVALID, 0, HelpHidden, DefaultVis, 0, 358, 0, 0, 0, 0) |
| 160 | OPTION(1, 820 /* -U */, nonDeterministicOption, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 823, 0, 0, 0, 0) |
| 161 | OPTION(1, 859 /* -version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 868, 0, 0, 0, 0) |
| 162 | OPTION(1, 904 /* -V */, anonymous_1, Flag, INVALID, version, 0, 0, DefaultVis, 0, 907, 0, 0, 0, 0) |
| 163 | OPTION(1, 941 /* -warnings_as_errors */, warningsAsErrors, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 961, 0, 0, 0, 0) |
| 164 | #endif // OPTION |
| 165 | |
| 166 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 167 | |
| 168 | struct SimpleEnumValue { |
| 169 | const char *Name; |
| 170 | unsigned Value; |
| 171 | }; |
| 172 | |
| 173 | struct SimpleEnumValueTable { |
| 174 | const SimpleEnumValue *Table; |
| 175 | unsigned Size; |
| 176 | }; |
| 177 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 178 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 179 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 180 | |