-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differential Revision: https://reviews.llvm.org/D148775
- Loading branch information
Showing
6 changed files
with
206 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
include "llvm/Option/OptParser.td" | ||
|
||
class F<string letter, string help> : Flag<["-"], letter>, HelpText<help>; | ||
class FF<string name, string help> : Flag<["--"], name>, HelpText<help>; | ||
|
||
multiclass Eq<string name, string help> { | ||
def NAME #_EQ : Joined<["--"], name #"=">, HelpText<help>; | ||
def : Separate<["--"], name>, Alias<!cast<Joined>(NAME #_EQ)>; | ||
} | ||
|
||
def help : FF<"help", "Display this help">; | ||
def : F<"h", "Alias for --help">, Alias<help>; | ||
def version : FF<"version", "Display the version">; | ||
def : F<"v", "Alias for --version">, Alias<version>; | ||
def verbose : FF<"verbose", "Enable verbose logging and encoding details">; | ||
defm convert : | ||
Eq<"convert", | ||
"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">; | ||
defm arch : | ||
Eq<"arch", | ||
"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">; | ||
defm out_file : | ||
Eq<"out-file", | ||
"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">; | ||
def : Separate<["-"], "o">, HelpText<"Alias for --out-file">, Alias<out_file_EQ>; | ||
def verify : FF<"verify", "Verify the generated GSYM file against the information in the file that was converted">; | ||
defm num_threads : | ||
Eq<"num-threads", | ||
"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">; | ||
defm segment_size : | ||
Eq<"segment-size", | ||
"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">; | ||
def quiet : FF<"quiet", "Do not output warnings about the debug information">; | ||
defm address : Eq<"address", "Lookup an address in a GSYM file">; | ||
def addresses_from_stdin : | ||
FF<"addresses-from-stdin", | ||
"Emit a section containing remark diagnostics metadata. By default, this is enabled for the following formats: yaml-strtab, bitstream">; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters