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 "-_\0"
26 "Alias for --strip-underscore\0"
27 "--format=\0"
28 "Specify mangling format. Currently ignored because only 'gnu' is supported\0"
29 "--format\0"
30 "--help\0"
31 "Display this help\0"
32 "-h\0"
33 "Alias for --help\0"
34 "--no-params\0"
35 "Skip function parameters and return types\0"
36 "--no-strip-underscore\0"
37 "Don't strip the leading underscore\0"
38 "-n\0"
39 "Alias for --no-strip-underscore\0"
40 "-p\0"
41 "Alias for --no-params\0"
42 "--quote\0"
43 "Quote demangled names with \" \" if not already quoted\0"
44 "--strip-underscore\0"
45 "Strip the leading underscore\0"
46 "-s\0"
47 "Alias for --format\0"
48 "--types\0"
49 "Attempt to demangle types as well as symbol names\0"
50 "-t\0"
51 "Alias for --types\0"
52 "--version\0"
53 "Display the version\0"
54 ;
55#ifdef __GNUC__
56#pragma GCC diagnostic pop
57#endif
58
59static constexpr llvm::StringTable
60OptionStrTable = OptionStrTableStorage;
61
62 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
63 0 /* prefixes */,
64 1 /* prefixes */, 1 /* '-' */,
65 1 /* prefixes */, 3 /* '--' */
66 };
67
68 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
69 {0, 0},
70 };
71
72 static constexpr unsigned OptionSubCommandIDsTable[] = {
73 0 /* subcommands */
74 };
75
76 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
77 {0, 0, 0, 0, 0, 0, 0, 0},
78 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
79 };
80
81 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
82 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
83 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
84 {24 /* -_ */, 27, 0, 13, 1, 1, llvm::opt::Option::FlagClass},
85 {56 /* --format= */, 66, 0, 0, 1, 3, llvm::opt::Option::JoinedClass},
86 {141 /* --format */, 0, 0, 4, 1, 3, llvm::opt::Option::SeparateClass},
87 {150 /* --help */, 157, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
88 {175 /* -h */, 178, 0, 6, 1, 1, llvm::opt::Option::FlagClass},
89 {195 /* --no-params */, 207, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
90 {249 /* --no-strip-underscore */, 271, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
91 {306 /* -n */, 309, 0, 9, 1, 1, llvm::opt::Option::FlagClass},
92 {341 /* -p */, 344, 0, 8, 1, 1, llvm::opt::Option::FlagClass},
93 {366 /* --quote */, 374, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
94 {427 /* --strip-underscore */, 446, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
95 {475 /* -s */, 478, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
96 {497 /* --types */, 505, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
97 {555 /* -t */, 558, 0, 15, 1, 1, llvm::opt::Option::FlagClass},
98 {576 /* --version */, 586, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
99 };
100
101 return {OptionStrTable, OptionPrefixesTable,
102 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
103}
104#undef OPTTABLE_CODE
105#endif // OPTTABLE_CODE
106
107/////////
108// ValuesCode
109
110#ifdef OPTTABLE_VALUES_CODE
111static llvm::StringRef getOptionValuesCode(unsigned ID) {
112 switch (ID) {
113 }
114 return {};
115}
116#undef OPTTABLE_VALUES_CODE
117#endif // OPTTABLE_VALUES_CODE
118/////////
119// Groups
120
121#ifdef OPTION
122
123//////////
124// Options
125
126OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
127OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
128OPTION(1, 24 /* -_ */, anonymous_3, Flag, INVALID, strip_underscore, 0, 0, static_cast<unsigned>(DefaultVis), 0, 27, 0, 0, 0, 0)
129OPTION(3, 56 /* --format= */, anonymous_1_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 66, 0, 0, 0, 0)
130OPTION(3, 141 /* --format */, anonymous_0, Separate, INVALID, anonymous_1_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
131OPTION(3, 150 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 157, 0, 0, 0, 0)
132OPTION(1, 175 /* -h */, anonymous_4, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 178, 0, 0, 0, 0)
133OPTION(3, 195 /* --no-params */, no_params, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 207, 0, 0, 0, 0)
134OPTION(3, 249 /* --no-strip-underscore */, no_strip_underscore, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 271, 0, 0, 0, 0)
135OPTION(1, 306 /* -n */, anonymous_5, Flag, INVALID, no_strip_underscore, 0, 0, static_cast<unsigned>(DefaultVis), 0, 309, 0, 0, 0, 0)
136OPTION(1, 341 /* -p */, anonymous_6, Flag, INVALID, no_params, 0, 0, static_cast<unsigned>(DefaultVis), 0, 344, 0, 0, 0, 0)
137OPTION(3, 366 /* --quote */, quote, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 374, 0, 0, 0, 0)
138OPTION(3, 427 /* --strip-underscore */, strip_underscore, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 446, 0, 0, 0, 0)
139OPTION(1, 475 /* -s */, anonymous_2, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 478, 0, 0, 0, 0)
140OPTION(3, 497 /* --types */, types, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 505, 0, 0, 0, 0)
141OPTION(1, 555 /* -t */, anonymous_7, Flag, INVALID, types, 0, 0, static_cast<unsigned>(DefaultVis), 0, 558, 0, 0, 0, 0)
142OPTION(3, 576 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 586, 0, 0, 0, 0)
143#endif // OPTION
144
145#ifdef SIMPLE_ENUM_VALUE_TABLE
146
147struct SimpleEnumValue {
148 const char *Name;
149 unsigned Value;
150};
151
152struct SimpleEnumValueTable {
153 const SimpleEnumValue *Table;
154 unsigned Size;
155};
156static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
157static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
158#endif // SIMPLE_ENUM_VALUE_TABLE
159