| 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 | "--help\0" |
| 25 | "-h\0" |
| 26 | "--version\0" |
| 27 | "-V\0" |
| 28 | ; |
| 29 | #ifdef __GNUC__ |
| 30 | #pragma GCC diagnostic pop |
| 31 | #endif |
| 32 | |
| 33 | static constexpr llvm::StringTable |
| 34 | OptionStrTable = OptionStrTableStorage; |
| 35 | #endif // OPTTABLE_STR_TABLE_CODE |
| 36 | |
| 37 | ///////// |
| 38 | // Prefixes |
| 39 | |
| 40 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 41 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 42 | 0 /* prefixes */, |
| 43 | 1 /* prefixes */, 1 /* '-' */, |
| 44 | 1 /* prefixes */, 3 /* '--' */ |
| 45 | }; |
| 46 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 47 | |
| 48 | /////////// SubCommand IDs |
| 49 | |
| 50 | #ifdef OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 51 | static constexpr unsigned OptionSubCommandIDsTable[] = { |
| 52 | 0 /* subcommands */ |
| 53 | }; |
| 54 | #endif // OPTTABLE_SUBCOMMAND_IDS_TABLE_CODE |
| 55 | |
| 56 | ///////// |
| 57 | // Prefix Union |
| 58 | |
| 59 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 60 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 61 | 1 /* '-' */, 3 /* '--' */ |
| 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, 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, 0) |
| 79 | 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, 0) |
| 80 | OPTION(3, 24 /* --help */, help, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 81 | "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" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 82 | OPTION(1, 31 /* -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, 0) |
| 83 | OPTION(3, 34 /* --version */, version, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 84 | "Print the version and exit" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 85 | OPTION(1, 44 /* -V */, V, Flag, INVALID, version, nullptr, 0, DefaultVis, 0, |
| 86 | "Alias for --version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr, 0) |
| 87 | #endif // OPTION |
| 88 | |
| 89 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 90 | |
| 91 | struct SimpleEnumValue { |
| 92 | const char *Name; |
| 93 | unsigned Value; |
| 94 | }; |
| 95 | |
| 96 | struct SimpleEnumValueTable { |
| 97 | const SimpleEnumValue *Table; |
| 98 | unsigned Size; |
| 99 | }; |
| 100 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 101 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 102 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 103 | |
| 104 | ///////// |
| 105 | |
| 106 | // SubCommands |
| 107 | |
| 108 | #ifdef OPTTABLE_SUBCOMMANDS_CODE |
| 109 | static constexpr llvm::opt::OptTable::SubCommand OptionSubCommands[] = { |
| 110 | }; |
| 111 | #endif // OPTTABLE_SUBCOMMANDS_CODE |
| 112 | |
| 113 | |
| 114 | |