| 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 | "--help\0" |
| 25 | "URIs can be read from STDIN, one per line.\nFrom the URIs specified, extracts code objects into files named:\n\t<executable_name>-[pid<number>]-offset<number>-size<number>.co\n\nURI syntax:\n\t<code_object_uri> ::== <file_uri> | <memory_uri>\n\t<file_uri> ::== \"file://\" <extract_file><range_specifier>\n\t<memory_uri> ::== \"memory://\"<process_id><range_specifier>\n\t<range_specifier> ::== [ \"#\" | \"?\" ]\"offset=\"<number>\"&size=\"<number>\n\t<extract_file> ::== URI_ENCODED_OS_FILE_PATH\n\t<process_id> ::== DECIMAL_NUMBER\n\t<number> ::== DECIMAL_NUMBER\n\nExample: file://dir1/dir2/hello_world#offset=133&size=14472 \n memory://1234#offset=0x20000&size=3000\n\0" |
| 26 | "-h\0" |
| 27 | "--version\0" |
| 28 | "Print the version and exit\0" |
| 29 | "-V\0" |
| 30 | "Alias for --version\0" |
| 31 | ; |
| 32 | #ifdef __GNUC__ |
| 33 | #pragma GCC diagnostic pop |
| 34 | #endif |
| 35 | |
| 36 | static constexpr llvm::StringTable |
| 37 | OptionStrTable = OptionStrTableStorage; |
| 38 | #undef OPTTABLE_STR_TABLE_CODE |
| 39 | #endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE |
| 40 | |
| 41 | ///////// |
| 42 | // Tables |
| 43 | |
| 44 | #ifdef OPTTABLE_CODE |
| 45 | static llvm::opt::OptTable::Tables optionTables() { |
| 46 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 47 | 0 /* prefixes */, |
| 48 | 1 /* prefixes */, 1 /* '-' */, |
| 49 | 1 /* prefixes */, 3 /* '--' */ |
| 50 | }; |
| 51 | |
| 52 | static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = { |
| 53 | {0, 0}, |
| 54 | }; |
| 55 | |
| 56 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 57 | 0 /* subcommands */ |
| 58 | }; |
| 59 | |
| 60 | static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = { |
| 61 | {0, 0, 0, 0, 0}, |
| 62 | }; |
| 63 | |
| 64 | static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = { |
| 65 | {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0}, |
| 66 | {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0}, |
| 67 | {24 /* --help */, 31, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 68 | {698 /* -h */, 0, 0, DefaultVis, 1, 0, 3, 0, llvm::opt::Option::FlagClass, 0}, |
| 69 | {701 /* --version */, 711, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0}, |
| 70 | {738 /* -V */, 741, 0, DefaultVis, 1, 0, 5, 0, llvm::opt::Option::FlagClass, 0}, |
| 71 | }; |
| 72 | |
| 73 | return {OptionStrTableStorage, OptionPrefixesTable, |
| 74 | OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable}; |
| 75 | } |
| 76 | #undef OPTTABLE_CODE |
| 77 | #endif // OPTTABLE_CODE |
| 78 | |
| 79 | ///////// |
| 80 | // ValuesCode |
| 81 | |
| 82 | #ifdef OPTTABLE_VALUES_CODE |
| 83 | static llvm::StringRef getOptionValuesCode(unsigned ID) { |
| 84 | switch (ID) { |
| 85 | } |
| 86 | return {}; |
| 87 | } |
| 88 | #undef OPTTABLE_VALUES_CODE |
| 89 | #endif // OPTTABLE_VALUES_CODE |
| 90 | ///////// |
| 91 | // Groups |
| 92 | |
| 93 | #ifdef OPTION |
| 94 | |
| 95 | ////////// |
| 96 | // Options |
| 97 | |
| 98 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 99 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 100 | OPTION(3, 24 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 31, 0, 0, 0, 0) |
| 101 | OPTION(1, 698 /* -h */, h, Flag, INVALID, help, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0) |
| 102 | OPTION(3, 701 /* --version */, version, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 711, 0, 0, 0, 0) |
| 103 | OPTION(1, 738 /* -V */, V, Flag, INVALID, version, 0, 0, DefaultVis, 0, 741, 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 | |