1 include "llvm/Option/OptParser.td"
3 multiclass BB<string name, string help1, string help2> {
4 def NAME: Flag<["--"], name>, HelpText<help1>;
5 def no_ # NAME: Flag<["--"], "no-" # name>, HelpText<help2>;
8 def help : Flag<["--"], "help">,
9 HelpText<"Prints this help output">;
11 def h : Flag<["-"], "h">,
13 HelpText<"Alias for --help">;
15 defm odr_deduplication : BB<"odr-deduplication",
16 "Do ODR deduplication for debug types(default)",
17 "Don`t do ODR deduplication for debug types">;
19 def odr : Flag<["--"], "odr">,
20 Alias<odr_deduplication>,
21 HelpText<"Alias for --odr-deduplication">;
23 def no_odr : Flag<["--"], "no-odr">,
24 Alias<no_odr_deduplication>,
25 HelpText<"Alias for --no-odr-deduplication">;
27 defm garbage_collection : BB<"garbage-collection",
28 "Do garbage collection for debug info(default)",
29 "Don`t do garbage collection for debug info">;
31 defm separate_debug_file : BB<"separate-debug-file",
32 "Create two output files: file w/o debug tables and file with debug tables",
33 "Create single output file, containing debug tables(default)">;
35 def tombstone: Separate<["--", "-"], "tombstone">,
36 MetaVarName<"[bfd,maxpc,exec,universal]">,
37 HelpText<"Tombstone value used as a marker of invalid address(default: universal)\n"
38 " =bfd - Zero for all addresses and [1,1] for DWARF v4 (or less) address ranges and exec\n"
39 " =maxpc - Minus 1 for all addresses and minus 2 for DWARF v4 (or less) address ranges\n"
40 " =exec - Match with address ranges of executable sections\n"
41 " =universal - Both: bfd and maxpc"
43 def: Joined<["--", "-"], "tombstone=">, Alias<tombstone>;
45 def threads: Separate<["--", "-"], "num-threads">,
46 MetaVarName<"<threads>">,
47 HelpText<"Number of available threads for multi-threaded execution. "
48 "Defaults to the number of cores on the current machine">;
50 def: Separate<["-"], "j">,
52 HelpText<"Alias for --num-threads">;
54 def verbose : Flag<["--"], "verbose">,
55 HelpText<"Enable verbose logging">;
57 def verify : Flag<["--"], "verify">,
58 HelpText<"Run the DWARF verifier on the resulting debug info">;
60 def version : Flag<["--"], "version">,
61 HelpText<"Print the version and exit">;
63 def V : Flag<["-"], "V">,
65 HelpText<"Alias for --version">;