1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Option Parsing Definitions *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9/////////
10// Prefixes
11
12#ifdef PREFIX
13#define COMMA ,
14PREFIX(prefix_0, {llvm::StringLiteral("")})
15PREFIX(prefix_3, {llvm::StringLiteral("-") COMMA llvm::StringLiteral("")})
16PREFIX(prefix_2, {llvm::StringLiteral("-") COMMA llvm::StringLiteral("--") COMMA llvm::StringLiteral("")})
17PREFIX(prefix_1, {llvm::StringLiteral("--") COMMA llvm::StringLiteral("-") COMMA llvm::StringLiteral("")})
18#undef COMMA
19#endif // PREFIX
20
21/////////
22// Prefix Union
23
24#ifdef PREFIX_UNION
25#define COMMA ,
26PREFIX_UNION({
27llvm::StringLiteral("-") COMMA llvm::StringLiteral("--") COMMA llvm::StringLiteral("")})
28#undef COMMA
29#endif // PREFIX_UNION
30
31/////////
32// ValuesCode
33
34#ifdef OPTTABLE_VALUES_CODE
35#endif
36/////////
37// Groups
38
39#ifdef OPTION
40OPTION(llvm::ArrayRef<llvm::StringLiteral>(), "Dsymutil", grp_general, Group, INVALID, INVALID, nullptr, 0, 0, 0,
41 "Dsymutil Options", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
42
43//////////
44// Options
45
46OPTION(prefix_0, "<input>", INPUT, Input, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
47OPTION(prefix_0, "<unknown>", UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
48OPTION(prefix_1, "--accelerator=", anonymous_13, Joined, INVALID, accelerator, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
49OPTION(prefix_1, "--accelerator", accelerator, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
50 "Specify the desired type of accelerator table. Valid options are 'Apple' (.apple_names, .apple_namespaces, .apple_types, .apple_objc), 'Dwarf' (.debug_names), 'Pub' (.debug_pubnames, .debug_pubtypes), 'Default' and 'None'", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<accelerator type>", nullptr)
51OPTION(prefix_1, "--arch=", anonymous_12, Joined, INVALID, arch, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
52OPTION(prefix_1, "--arch", arch, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
53 "Link DWARF debug information only for specified CPU architecturetypes. This option can be specified multiple times, once for eachdesired architecture. All CPU architectures will be linked bydefault.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<arch>", nullptr)
54OPTION(prefix_1, "--build-variant-suffix=", anonymous_20, Joined, INVALID, build_variant_suffix, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
55OPTION(prefix_1, "--build-variant-suffix", build_variant_suffix, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
56 "Specify the build variant suffix used to build the executabe file.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<suffix=buildvariant>", nullptr)
57OPTION(prefix_1, "--dump-debug-map", dump_debug_map, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
58 "Parse and dump the debug map to standard output. No DWARF link will take place.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
59OPTION(prefix_2, "-D", dsym_search_path, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
60 "Specify a directory that contain dSYM files to search for.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<path>", nullptr)
61OPTION(prefix_1, "--fat64", fat64, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
62 "Use a 64-bit header when emitting universal binaries.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
63OPTION(prefix_1, "--flat", flat, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
64 "Produce a flat dSYM file (not a bundle).", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
65OPTION(prefix_3, "-f", anonymous_5, Flag, grp_general, flat, nullptr, 0, DefaultVis, 0,
66 "Alias for --flat", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
67OPTION(prefix_1, "--gen-reproducer", gen_reproducer, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
68 "Generate a reproducer consisting of the input object files. Alias for --reproducer=GenerateOnExit.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
69OPTION(prefix_1, "--help", help, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
70 "Prints this help output.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
71OPTION(prefix_3, "-h", anonymous_0, Flag, grp_general, help, nullptr, 0, DefaultVis, 0,
72 "Alias for --help", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
73OPTION(prefix_3, "-j", anonymous_14, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
74 "Alias for --num-threads", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<threads>", nullptr)
75OPTION(prefix_1, "--keep-function-for-static", keep_func_for_static, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
76 "Make a static variable keep the enclosing function even if it would have been omitted otherwise.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
77OPTION(prefix_1, "--linker=", anonymous_19, Joined, INVALID, linker, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
78OPTION(prefix_1, "--linker", linker, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
79 "Specify the desired type of DWARF linker. Defaults to 'classic'", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<DWARF linker type>", nullptr)
80OPTION(prefix_1, "--no-odr", no_odr, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
81 "Do not use ODR (One Definition Rule) for type uniquing.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
82OPTION(prefix_1, "--no-output", no_output, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
83 "Do the link in memory, but do not emit the result file.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
84OPTION(prefix_1, "--no-swiftmodule-timestamp", no_swiftmodule_timestamp, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
85 "Don't check timestamp for swiftmodule files.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
86OPTION(prefix_1, "--num-threads", threads, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
87 "Specifies the maximum number of simultaneous threads to use when linking multiple architectures.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<threads>", nullptr)
88OPTION(prefix_2, "-o=", anonymous_9, Joined, INVALID, output, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
89OPTION(prefix_1, "--object-prefix-map=", anonymous_11, Joined, INVALID, object_prefix_map, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
90OPTION(prefix_1, "--object-prefix-map", object_prefix_map, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
91 "Remap object file paths (but no source paths) before processing.Use this for Clang objects where the module cache location wasremapped using -fdebug-prefix-map; to help dsymutilfind the Clang module cache.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<prefix=remapped>", nullptr)
92OPTION(prefix_1, "--oso-prepend-path=", anonymous_10, Joined, INVALID, oso_prepend_path, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
93OPTION(prefix_1, "--oso-prepend-path", oso_prepend_path, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
94 "Specify a directory to prepend to the paths of object files.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<path>", nullptr)
95OPTION(prefix_1, "--out=", anonymous_8, Joined, INVALID, output, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
96OPTION(prefix_1, "--out", anonymous_7, Separate, grp_general, output, nullptr, 0, DefaultVis, 0,
97 "Alias for -o", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<filename>", nullptr)
98OPTION(prefix_2, "-o", output, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
99 "Specify the output file. Defaults to <input file>.dwarf", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<filename>", nullptr)
100OPTION(prefix_1, "--quiet", quiet, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
101 "Enable quiet mode.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
102OPTION(prefix_3, "-q", anonymous_2, Flag, grp_general, quiet, nullptr, 0, DefaultVis, 0,
103 "Alias for --quiet", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
104OPTION(prefix_1, "--remarks-drop-without-debug", remarks_drop_without_debug, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
105 "Drop remarks without valid debug locations. Without this flags, all remarks are kept.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
106OPTION(prefix_1, "--remarks-output-format=", anonymous_18, Joined, INVALID, remarks_output_format, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
107OPTION(prefix_1, "--remarks-output-format", remarks_output_format, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
108 "Specify the format to be used when serializing the linked remarks.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<format>", nullptr)
109OPTION(prefix_1, "--remarks-prepend-path=", anonymous_17, Joined, INVALID, remarks_prepend_path, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
110OPTION(prefix_1, "--remarks-prepend-path", remarks_prepend_path, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
111 "Specify a directory to prepend to the paths of the external remark files.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<path>", nullptr)
112OPTION(prefix_1, "--reproducer=", anonymous_15, Joined, INVALID, reproducer, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
113OPTION(prefix_1, "--reproducer", reproducer, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
114 "Specify the reproducer generation mode. Valid options are 'GenerateOnExit', 'GenerateOnCrash', 'Off'.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<mode>", nullptr)
115OPTION(prefix_1, "--statistics", statistics, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
116 "Print statistics about the contribution of each object file to the linked debug info. This prints a table after linking with the object file name, the size of the debug info in the object file (in bytes) and the size contributed (in bytes) to the linked dSYM. The table is sorted by the output size listing the object files with the largest contribution first.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
117OPTION(prefix_1, "--symtab", symtab, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
118 "Dumps the symbol table found in executable or object file(s) and exits.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
119OPTION(prefix_2, "-S", assembly, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
120 "Output textual assembly instead of a binary dSYM companion file.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
121OPTION(prefix_3, "-s", anonymous_4, Flag, grp_general, symtab, nullptr, 0, DefaultVis, 0,
122 "Alias for --symtab", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
123OPTION(prefix_1, "--toolchain", toolchain, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
124 "Embed toolchain information in dSYM bundle.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<toolchain>", nullptr)
125OPTION(prefix_1, "--update", update, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
126 "Updates existing dSYM files to contain the latest accelerator tables and other DWARF optimizations.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
127OPTION(prefix_1, "--use-reproducer=", anonymous_16, Joined, INVALID, use_reproducer, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
128OPTION(prefix_1, "--use-reproducer", use_reproducer, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
129 "Use the object files from the given reproducer path.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<path>", nullptr)
130OPTION(prefix_3, "-u", anonymous_6, Flag, grp_general, update, nullptr, 0, DefaultVis, 0,
131 "Alias for --update", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
132OPTION(prefix_1, "--verbose", verbose, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
133 "Enable verbose mode.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
134OPTION(prefix_1, "--verify-dwarf=", anonymous_3, Joined, INVALID, verify_dwarf, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
135OPTION(prefix_1, "--verify-dwarf", verify_dwarf, Separate, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
136 "Run the DWARF verifier on the input and/or output. Valid options are 'none, 'input', 'output', 'all' or 'auto' which runs the output verifier only if input verification passed.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), "<verification mode>", nullptr)
137OPTION(prefix_1, "--verify", verify, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
138 "Alias for --verify-dwarf=output", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
139OPTION(prefix_1, "--version", version, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
140 "Prints the dsymutil version.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
141OPTION(prefix_3, "-v", anonymous_1, Flag, grp_general, version, nullptr, 0, DefaultVis, 0,
142 "Alias for --version", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
143OPTION(prefix_2, "-y", yaml_input, Flag, grp_general, INVALID, nullptr, 0, DefaultVis, 0,
144 "Treat the input file is a YAML debug map rather than a binary.", (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ std::make_pair(std::array<unsigned, 2>{{0, 0}}, nullptr) }}), nullptr, nullptr)
145#endif // OPTION
146
147#ifdef SIMPLE_ENUM_VALUE_TABLE
148
149struct SimpleEnumValue {
150 const char *Name;
151 unsigned Value;
152};
153
154struct SimpleEnumValueTable {
155 const SimpleEnumValue *Table;
156 unsigned Size;
157};
158static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
159static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
160#endif // SIMPLE_ENUM_VALUE_TABLE
161
162
163