14539b441SAlexey Lapshininclude "llvm/Option/OptParser.td" 24539b441SAlexey Lapshin 34539b441SAlexey Lapshinmulticlass BB<string name, string help1, string help2> { 44539b441SAlexey Lapshin def NAME: Flag<["--"], name>, HelpText<help1>; 54539b441SAlexey Lapshin def no_ # NAME: Flag<["--"], "no-" # name>, HelpText<help2>; 64539b441SAlexey Lapshin} 74539b441SAlexey Lapshin 82216ee49SAlexey Lapshindef build_accelerator: Separate<["--", "-"], "build-accelerator">, 92216ee49SAlexey Lapshin MetaVarName<"[none,DWARF]">, 102216ee49SAlexey Lapshin HelpText<"Build accelerator tables(default: none)\n" 112216ee49SAlexey Lapshin " =none - Do not build accelerators\n" 122216ee49SAlexey Lapshin " =DWARF - .debug_names are generated for all DWARF versions\n" 132216ee49SAlexey Lapshin >; 142216ee49SAlexey Lapshindef: Joined<["--", "-"], "build-accelerator=">, Alias<build_accelerator>; 152216ee49SAlexey Lapshin 164539b441SAlexey Lapshindef help : Flag<["--"], "help">, 174539b441SAlexey Lapshin HelpText<"Prints this help output">; 184539b441SAlexey Lapshin 194539b441SAlexey Lapshindef h : Flag<["-"], "h">, 204539b441SAlexey Lapshin Alias<help>, 214539b441SAlexey Lapshin HelpText<"Alias for --help">; 224539b441SAlexey Lapshin 2336f35109SAlexey Lapshindef linker: Separate<["--", "-"], "linker">, 2436f35109SAlexey Lapshin MetaVarName<"<DWARF linker type>">, 25*f1fdfe68SAlexey Lapshin HelpText<"Specify the desired type of DWARF linker. Defaults to 'classic'">; 2636f35109SAlexey Lapshindef: Joined<["--", "-"], "linker=">, Alias<linker>; 2736f35109SAlexey Lapshin 284539b441SAlexey Lapshindefm odr_deduplication : BB<"odr-deduplication", 294539b441SAlexey Lapshin "Do ODR deduplication for debug types(default)", 304539b441SAlexey Lapshin "Don`t do ODR deduplication for debug types">; 314539b441SAlexey Lapshin 324539b441SAlexey Lapshindef odr : Flag<["--"], "odr">, 334539b441SAlexey Lapshin Alias<odr_deduplication>, 344539b441SAlexey Lapshin HelpText<"Alias for --odr-deduplication">; 354539b441SAlexey Lapshin 364539b441SAlexey Lapshindef no_odr : Flag<["--"], "no-odr">, 374539b441SAlexey Lapshin Alias<no_odr_deduplication>, 384539b441SAlexey Lapshin HelpText<"Alias for --no-odr-deduplication">; 394539b441SAlexey Lapshin 404539b441SAlexey Lapshindefm garbage_collection : BB<"garbage-collection", 414539b441SAlexey Lapshin "Do garbage collection for debug info(default)", 424539b441SAlexey Lapshin "Don`t do garbage collection for debug info">; 434539b441SAlexey Lapshin 444539b441SAlexey Lapshindefm separate_debug_file : BB<"separate-debug-file", 454539b441SAlexey Lapshin "Create two output files: file w/o debug tables and file with debug tables", 464539b441SAlexey Lapshin "Create single output file, containing debug tables(default)">; 474539b441SAlexey Lapshin 484539b441SAlexey Lapshindef tombstone: Separate<["--", "-"], "tombstone">, 494539b441SAlexey Lapshin MetaVarName<"[bfd,maxpc,exec,universal]">, 504539b441SAlexey Lapshin HelpText<"Tombstone value used as a marker of invalid address(default: universal)\n" 514539b441SAlexey Lapshin " =bfd - Zero for all addresses and [1,1] for DWARF v4 (or less) address ranges and exec\n" 524539b441SAlexey Lapshin " =maxpc - Minus 1 for all addresses and minus 2 for DWARF v4 (or less) address ranges\n" 534539b441SAlexey Lapshin " =exec - Match with address ranges of executable sections\n" 544539b441SAlexey Lapshin " =universal - Both: bfd and maxpc" 554539b441SAlexey Lapshin >; 564539b441SAlexey Lapshindef: Joined<["--", "-"], "tombstone=">, Alias<tombstone>; 574539b441SAlexey Lapshin 584539b441SAlexey Lapshindef threads: Separate<["--", "-"], "num-threads">, 594539b441SAlexey Lapshin MetaVarName<"<threads>">, 604539b441SAlexey Lapshin HelpText<"Number of available threads for multi-threaded execution. " 614539b441SAlexey Lapshin "Defaults to the number of cores on the current machine">; 624539b441SAlexey Lapshin 634539b441SAlexey Lapshindef: Separate<["-"], "j">, 644539b441SAlexey Lapshin Alias<threads>, 654539b441SAlexey Lapshin HelpText<"Alias for --num-threads">; 664539b441SAlexey Lapshin 674539b441SAlexey Lapshindef verbose : Flag<["--"], "verbose">, 684539b441SAlexey Lapshin HelpText<"Enable verbose logging">; 694539b441SAlexey Lapshin 704539b441SAlexey Lapshindef verify : Flag<["--"], "verify">, 714539b441SAlexey Lapshin HelpText<"Run the DWARF verifier on the resulting debug info">; 724539b441SAlexey Lapshin 734539b441SAlexey Lapshindef version : Flag<["--"], "version">, 744539b441SAlexey Lapshin HelpText<"Print the version and exit">; 754539b441SAlexey Lapshin 764539b441SAlexey Lapshindef V : Flag<["-"], "V">, 774539b441SAlexey Lapshin Alias<version>, 784539b441SAlexey Lapshin HelpText<"Alias for --version">; 79