1 include "llvm/Option/OptParser.td"
3 class F<string name>: Flag<["--", "-"], name>;
5 def grp_general : OptionGroup<"Dsymutil">, HelpText<"Dsymutil Options">;
8 HelpText<"Prints this help output.">,
10 def: Flag<["-"], "h">,
12 HelpText<"Alias for --help">,
15 def version: F<"version">,
16 HelpText<"Prints the dsymutil version.">,
18 def: Flag<["-"], "v">,
20 HelpText<"Alias for --version">,
23 def verbose: F<"verbose">,
24 HelpText<"Enable verbose mode.">,
27 def verify: F<"verify">,
28 HelpText<"Run the DWARF verifier on the linked DWARF debug info.">,
31 def no_output: F<"no-output">,
32 HelpText<"Do the link in memory, but do not emit the result file.">,
35 def no_swiftmodule_timestamp: F<"no-swiftmodule-timestamp">,
36 HelpText<"Don't check timestamp for swiftmodule files.">,
39 def no_odr: F<"no-odr">,
40 HelpText<"Do not use ODR (One Definition Rule) for type uniquing.">,
43 def dump_debug_map: F<"dump-debug-map">,
44 HelpText<"Parse and dump the debug map to standard output. Not DWARF link will take place.">,
47 def yaml_input: F<"y">,
48 HelpText<"Treat the input file is a YAML debug map rather than a binary.">,
51 def papertrail: F<"papertrail">,
52 HelpText<"Embed warnings in the linked DWARF debug info.">,
56 HelpText<"Output textual assembly instead of a binary dSYM companion file.">,
59 def symtab: F<"symtab">,
60 HelpText<"Dumps the symbol table found in executable or object file(s) and exits.">,
62 def: Flag<["-"], "s">,
64 HelpText<"Alias for --symtab">,
68 HelpText<"Produce a flat dSYM file (not a bundle).">,
70 def: Flag<["-"], "f">,
72 HelpText<"Alias for --flat">,
75 def minimize: F<"minimize">,
76 HelpText<"When used when creating a dSYM file with Apple accelerator tables, "
77 "this option will suppress the emission of the .debug_inlines, "
78 ".debug_pubnames, and .debug_pubtypes sections since dsymutil "
79 "has better equivalents: .apple_names and .apple_types. When used in "
80 "conjunction with --update option, this option will cause redundant "
81 "accelerator tables to be removed.">,
83 def: Flag<["-"], "z">,
85 HelpText<"Alias for --minimize">,
88 def update: F<"update">,
89 HelpText<"Updates existing dSYM files to contain the latest accelerator tables and other DWARF optimizations.">,
91 def: Flag<["-"], "u">,
93 HelpText<"Alias for --update">,
96 def output: Separate<["--", "-"], "o">,
97 MetaVarName<"<filename>">,
98 HelpText<"Specify the output file. Defaults to <input file>.dwarf">,
100 def: Separate<["-"], "out">,
102 HelpText<"Alias for --o">,
104 def: Joined<["--", "-"], "out=">, Alias<output>;
105 def: Joined<["--", "-"], "o=">, Alias<output>;
107 def oso_prepend_path: Separate<["--", "-"], "oso-prepend-path">,
108 MetaVarName<"<path>">,
109 HelpText<"Specify a directory to prepend to the paths of object files.">,
111 def: Joined<["--", "-"], "oso-prepend-path=">, Alias<oso_prepend_path>;
113 def symbolmap: Separate<["--", "-"], "symbol-map">,
114 MetaVarName<"<bcsymbolmap>">,
115 HelpText<"Updates the existing dSYMs inplace using symbol map specified.">,
117 def: Joined<["--", "-"], "symbol-map=">, Alias<symbolmap>;
119 def arch: Separate<["--", "-"], "arch">,
120 MetaVarName<"<arch>">,
121 HelpText<"Link DWARF debug information only for specified CPU architecture"
122 "types. This option can be specified multiple times, once for each"
123 "desired architecture. All CPU architectures will be linked by"
126 def: Joined<["--", "-"], "arch=">, Alias<arch>;
128 def accelerator: Separate<["--", "-"], "accelerator">,
129 MetaVarName<"<accelerator type>">,
130 HelpText<"Specify the desired type of accelerator table. Valid options are 'Apple', 'Dwarf' and 'Default'">,
132 def: Joined<["--", "-"], "accelerator=">, Alias<accelerator>;
134 def toolchain: Separate<["--", "-"], "toolchain">,
135 MetaVarName<"<toolchain>">,
136 HelpText<"Embed toolchain information in dSYM bundle.">,
139 def threads: Separate<["--", "-"], "num-threads">,
140 MetaVarName<"<threads>">,
141 HelpText<"Specifies the maximum number of simultaneous threads to use when linking multiple architectures.">,
143 def: Separate<["-"], "j">,
145 HelpText<"Alias for --num-threads">,