1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Option Parsing Definitions *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9/////////
10// Tables
11
12#ifdef OPTTABLE_CODE
13static llvm::opt::OptTable::Tables optionTables() {
14
15#ifdef __GNUC__
16#pragma GCC diagnostic push
17#pragma GCC diagnostic ignored "-Woverlength-strings"
18#endif
19static constexpr char OptionStrTableStorage[] =
20 "\0"
21 "-\0"
22 "--\0"
23 "<input>\0"
24 "<unknown>\0"
25 "--help\0"
26 "Display this help\0"
27 "-h\0"
28 "Alias for --help\0"
29 "-o\0"
30 "Output filename\0"
31 "<filename>\0"
32 "--raw-segment=\0"
33 "Mach-O: dump the raw contents of the listed segment (data or linkedit) instead of parsing it\0"
34 "<segment>\0"
35 "--raw-segment\0"
36 "--version\0"
37 "Display the version\0"
38 ;
39#ifdef __GNUC__
40#pragma GCC diagnostic pop
41#endif
42
43static constexpr llvm::StringTable
44OptionStrTable = OptionStrTableStorage;
45
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, 0, 0, 0},
62 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
63 {88, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
64 {207, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
65 };
66
67 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
68 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
69 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
70 {24 /* --help */, 31, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
71 {49 /* -h */, 52, 0, 3, 1, 1, llvm::opt::Option::FlagClass},
72 {69 /* -o */, 72, 0, 0, 2, 1, llvm::opt::Option::JoinedOrSeparateClass},
73 {99 /* --raw-segment= */, 114, 0, 0, 3, 3, llvm::opt::Option::JoinedClass},
74 {217 /* --raw-segment */, 0, 0, 6, 3, 3, llvm::opt::Option::SeparateClass},
75 {231 /* --version */, 241, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
76 };
77
78 return {OptionStrTable, OptionPrefixesTable,
79 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
80}
81#undef OPTTABLE_CODE
82#endif // OPTTABLE_CODE
83
84/////////
85// ValuesCode
86
87#ifdef OPTTABLE_VALUES_CODE
88static llvm::StringRef getOptionValuesCode(unsigned ID) {
89 switch (ID) {
90 }
91 return {};
92}
93#undef OPTTABLE_VALUES_CODE
94#endif // OPTTABLE_VALUES_CODE
95/////////
96// Groups
97
98#ifdef OPTION
99
100//////////
101// Options
102
103OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
104OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
105OPTION(3, 24 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 31, 0, 0, 0, 0)
106OPTION(1, 49 /* -h */, anonymous_1, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 52, 0, 0, 0, 0)
107OPTION(1, 69 /* -o */, o, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 72, 0, 88, 0, 0)
108OPTION(3, 99 /* --raw-segment= */, raw_segment_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 114, 0, 207, 0, 0)
109OPTION(3, 217 /* --raw-segment */, anonymous_0, Separate, INVALID, raw_segment_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 207, 0, 0)
110OPTION(3, 231 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 241, 0, 0, 0, 0)
111#endif // OPTION
112
113#ifdef SIMPLE_ENUM_VALUE_TABLE
114
115struct SimpleEnumValue {
116 const char *Name;
117 unsigned Value;
118};
119
120struct SimpleEnumValueTable {
121 const SimpleEnumValue *Table;
122 unsigned Size;
123};
124static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
125static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
126#endif // SIMPLE_ENUM_VALUE_TABLE
127