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 "kind\0"
24 "OPTIONS (Mach-O specific)\0"
25 "<input>\0"
26 "<unknown>\0"
27 "--arch=\0"
28 "architecture(s) from a Mach-O file to dump\0"
29 "--arch\0"
30 "-A\0"
31 "Alias for --format\0"
32 "sysv\0"
33 "\0"
34 "-B\0"
35 "berkeley\0"
36 "\0"
37 "--common\0"
38 "Print common symbols in the ELF file. When using Berkeley format, this is added to bss\0"
39 "-d\0"
40 "Alias for --radix=10\0"
41 "10\0"
42 "\0"
43 "--exclude-pagezero\0"
44 "Do not include __PAGEZERO segment in totals\0"
45 "--format=\0"
46 "Specify output format\0"
47 "--format\0"
48 "--help\0"
49 "Display this help\0"
50 "-h\0"
51 "Alias for --help\0"
52 "-l\0"
53 "When format is darwin, use long format to include addresses and offsets\0"
54 "-m\0"
55 "darwin\0"
56 "\0"
57 "-o\0"
58 "Alias for --radix=8\0"
59 "8\0"
60 "\0"
61 "--radix=\0"
62 "Print size in radix\0"
63 "--radix\0"
64 "--totals\0"
65 "Print totals of all objects - Berkeley format only\0"
66 "-t\0"
67 "Alias for --totals\0"
68 "--version\0"
69 "Display the version\0"
70 "-x\0"
71 "Alias for --radix=16\0"
72 "16\0"
73 "\0"
74 ;
75#ifdef __GNUC__
76#pragma GCC diagnostic pop
77#endif
78
79static constexpr llvm::StringTable
80OptionStrTable = OptionStrTableStorage;
81
82 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
83 0 /* prefixes */,
84 1 /* prefixes */, 1 /* '-' */,
85 1 /* prefixes */, 3 /* '--' */,
86 2 /* prefixes */, 3 /* '--' */, 1 /* '-' */
87 };
88
89 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
90 {0, 0},
91 };
92
93 static constexpr unsigned OptionSubCommandIDsTable[] = {
94 0 /* subcommands */
95 };
96
97 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
98 {0, 0, 0, 0, 0, 0, 0, 0},
99 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
100 {0, 135, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
101 {0, 144, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
102 {0, 274, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
103 {0, 505, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
104 {0, 536, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
105 {0, 712, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
106 };
107
108 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
109 {6 /* kind */, 11, 0, 0, 0, 0, llvm::opt::Option::GroupClass},
110 {37 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
111 {45 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
112 {55 /* --arch= */, 63, 1, 0, 1, 3, llvm::opt::Option::JoinedClass},
113 {106 /* --arch */, 0, 0, 4, 1, 5, llvm::opt::Option::SeparateClass},
114 {113 /* -A */, 116, 0, 11, 2, 1, llvm::opt::Option::FlagClass},
115 {141 /* -B */, 116, 0, 11, 3, 1, llvm::opt::Option::FlagClass},
116 {154 /* --common */, 163, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
117 {250 /* -d */, 253, 0, 18, 4, 1, llvm::opt::Option::FlagClass},
118 {278 /* --exclude-pagezero */, 297, 1, 0, 1, 3, llvm::opt::Option::FlagClass},
119 {341 /* --format= */, 351, 0, 0, 1, 3, llvm::opt::Option::JoinedClass},
120 {373 /* --format */, 0, 0, 11, 1, 3, llvm::opt::Option::SeparateClass},
121 {382 /* --help */, 389, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
122 {407 /* -h */, 410, 0, 13, 1, 1, llvm::opt::Option::FlagClass},
123 {427 /* -l */, 430, 1, 0, 1, 1, llvm::opt::Option::FlagClass},
124 {502 /* -m */, 116, 0, 11, 5, 1, llvm::opt::Option::FlagClass},
125 {513 /* -o */, 516, 0, 18, 6, 1, llvm::opt::Option::FlagClass},
126 {539 /* --radix= */, 548, 0, 0, 1, 3, llvm::opt::Option::JoinedClass},
127 {568 /* --radix */, 0, 0, 18, 1, 3, llvm::opt::Option::SeparateClass},
128 {576 /* --totals */, 585, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
129 {636 /* -t */, 639, 0, 20, 1, 1, llvm::opt::Option::FlagClass},
130 {658 /* --version */, 668, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
131 {688 /* -x */, 691, 0, 18, 7, 1, llvm::opt::Option::FlagClass},
132 };
133
134 return {OptionStrTable, OptionPrefixesTable,
135 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
136}
137#undef OPTTABLE_CODE
138#endif // OPTTABLE_CODE
139
140/////////
141// ValuesCode
142
143#ifdef OPTTABLE_VALUES_CODE
144static llvm::StringRef getOptionValuesCode(unsigned ID) {
145 switch (ID) {
146 }
147 return {};
148}
149#undef OPTTABLE_VALUES_CODE
150#endif // OPTTABLE_VALUES_CODE
151/////////
152// Groups
153
154#ifdef OPTION
155OPTION(0 /* no prefixes */, 6 /* kind */, grp_mach_o, Group, INVALID, INVALID, 0, 0, 0, 0, 11, 0, 0, 0, 0)
156
157//////////
158// Options
159
160OPTION(0, 37 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
161OPTION(0, 45 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
162OPTION(3, 55 /* --arch= */, arch_EQ, Joined, grp_mach_o, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 63, 0, 0, 0, 0)
163OPTION(5, 106 /* --arch */, anonymous_2, Separate, INVALID, arch_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
164OPTION(1, 113 /* -A */, anonymous_3, Flag, INVALID, format_EQ, 135, 0, static_cast<unsigned>(DefaultVis), 0, 116, 0, 0, 0, 0)
165OPTION(1, 141 /* -B */, anonymous_4, Flag, INVALID, format_EQ, 144, 0, static_cast<unsigned>(DefaultVis), 0, 116, 0, 0, 0, 0)
166OPTION(3, 154 /* --common */, common, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 163, 0, 0, 0, 0)
167OPTION(1, 250 /* -d */, anonymous_5, Flag, INVALID, radix_EQ, 274, 0, static_cast<unsigned>(DefaultVis), 0, 253, 0, 0, 0, 0)
168OPTION(3, 278 /* --exclude-pagezero */, exclude_pagezero, Flag, grp_mach_o, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 297, 0, 0, 0, 0)
169OPTION(3, 341 /* --format= */, format_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 351, 0, 0, 0, 0)
170OPTION(3, 373 /* --format */, anonymous_0, Separate, INVALID, format_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
171OPTION(3, 382 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 389, 0, 0, 0, 0)
172OPTION(1, 407 /* -h */, anonymous_6, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 410, 0, 0, 0, 0)
173OPTION(1, 427 /* -l */, l, Flag, grp_mach_o, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 430, 0, 0, 0, 0)
174OPTION(1, 502 /* -m */, anonymous_7, Flag, INVALID, format_EQ, 505, 0, static_cast<unsigned>(DefaultVis), 0, 116, 0, 0, 0, 0)
175OPTION(1, 513 /* -o */, anonymous_8, Flag, INVALID, radix_EQ, 536, 0, static_cast<unsigned>(DefaultVis), 0, 516, 0, 0, 0, 0)
176OPTION(3, 539 /* --radix= */, radix_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 548, 0, 0, 0, 0)
177OPTION(3, 568 /* --radix */, anonymous_1, Separate, INVALID, radix_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
178OPTION(3, 576 /* --totals */, totals, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 585, 0, 0, 0, 0)
179OPTION(1, 636 /* -t */, anonymous_9, Flag, INVALID, totals, 0, 0, static_cast<unsigned>(DefaultVis), 0, 639, 0, 0, 0, 0)
180OPTION(3, 658 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 668, 0, 0, 0, 0)
181OPTION(1, 688 /* -x */, anonymous_10, Flag, INVALID, radix_EQ, 712, 0, static_cast<unsigned>(DefaultVis), 0, 691, 0, 0, 0, 0)
182#endif // OPTION
183
184#ifdef SIMPLE_ENUM_VALUE_TABLE
185
186struct SimpleEnumValue {
187 const char *Name;
188 unsigned Value;
189};
190
191struct SimpleEnumValueTable {
192 const SimpleEnumValue *Table;
193 unsigned Size;
194};
195static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
196static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
197#endif // SIMPLE_ENUM_VALUE_TABLE
198