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">;
19 def merged_functions :
20 FF<"merged-functions", "When used with --convert, encodes merged function information for functions in debug info that have matching address ranges.\n"
21 "Without this option one function per unique address range will be emitted.\n"
22 "When used with --address/--addresses-from-stdin, all merged functions for a particular address will be displayed.\n"
23 "Without this option only one function will be displayed.">;
24 def dwarf_callsites : FF<"dwarf-callsites", "Load call site info from DWARF, if available">;
25 defm callsites_yaml_file :
26 Eq<"callsites-yaml-file", "Load call site info from YAML file. Useful for testing.">, Flags<[HelpHidden]>;
29 "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">;
32 "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">;
33 def : Separate<["-"], "o">, HelpText<"Alias for --out-file">, Alias<out_file_EQ>;
34 def verify : FF<"verify", "Verify the generated GSYM file against the information in the file that was converted">;
37 "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">;
40 "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">;
41 def quiet : FF<"quiet", "Do not output warnings about the debug information">;
42 defm address : Eq<"address", "Lookup an address in a GSYM file">;
43 def addresses_from_stdin :
44 FF<"addresses-from-stdin",
45 "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>">;
46 defm json_summary_file :
47 Eq<"json-summary-file",
48 "Output a categorized summary of errors into the JSON file specified.">;