1 include "llvm/Option/OptParser.td"
3 class F<string letter, string help> : Flag<["-"], letter>, HelpText<help>;
4 class FF<string name, string help> : Flag<["--"], name>, HelpText<help>;
6 multiclass Eq<string name, string help> {
7 def NAME #_EQ : Joined<["--"], name #"=">, HelpText<help>;
8 def : Separate<["--"], name>, Alias<!cast<Joined>(NAME #_EQ)>;
11 def help : FF<"help", "Display this help">;
12 def : F<"h", "Alias for --help">, Alias<help>;
13 def version : FF<"version", "Display the version">;
14 def : F<"v", "Alias for --version">, Alias<version>;
15 def verbose : FF<"verbose", "Enable verbose logging and encoding details">;
18 "Convert the specified file to the GSYM format.\nSupported files include ELF and mach-o files that will have their debug info (DWARF) and symbol table converted">;
21 "Process debug information for the specified CPU architecture only.\nArchitectures may be specified by name or by number.\nThis option can be specified multiple times, once for each desired architecture">;
24 "Specify the path where the converted GSYM file will be saved.\nWhen not specified, a '.gsym' extension will be appended to the file name specified in the --convert option">;
25 def : Separate<["-"], "o">, HelpText<"Alias for --out-file">, Alias<out_file_EQ>;
26 def verify : FF<"verify", "Verify the generated GSYM file against the information in the file that was converted">;
29 "Specify the maximum number (n) of simultaneous threads to use when converting files to GSYM.\nDefaults to the number of cores on the current machine">;
32 "Specify the size in bytes of the size the final GSYM file should be segmented into. This allows GSYM files to be split across multiple files">;
33 def quiet : FF<"quiet", "Do not output warnings about the debug information">;
34 defm address : Eq<"address", "Lookup an address in a GSYM file">;
35 def addresses_from_stdin :
36 FF<"addresses-from-stdin",
37 "Lookup addresses in a GSYM file that are read from stdin\nEach input line is expected to be of the following format: <addr> <gsym-path>">;