Options.td 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. include "llvm/Option/OptParser.td"
  2. class F<string name>: Flag<["--", "-"], name>;
  3. def grp_general : OptionGroup<"Dsymutil">, HelpText<"Dsymutil Options">;
  4. def help: F<"help">,
  5. HelpText<"Prints this help output.">,
  6. Group<grp_general>;
  7. def: Flag<["-"], "h">,
  8. Alias<help>,
  9. HelpText<"Alias for --help">,
  10. Group<grp_general>;
  11. def version: F<"version">,
  12. HelpText<"Prints the dsymutil version.">,
  13. Group<grp_general>;
  14. def: Flag<["-"], "v">,
  15. Alias<version>,
  16. HelpText<"Alias for --version">,
  17. Group<grp_general>;
  18. def verbose: F<"verbose">,
  19. HelpText<"Enable verbose mode.">,
  20. Group<grp_general>;
  21. def keep_func_for_static: F<"keep-function-for-static">,
  22. HelpText<"Make a static variable keep the enclosing function even if it would have been omitted otherwise.">,
  23. Group<grp_general>;
  24. def statistics: F<"statistics">,
  25. HelpText<"Print statistics about the contribution of each object file to "
  26. "the linked debug info. This prints a table after linking with the "
  27. "object file name, the size of the debug info in the object file "
  28. "(in bytes) and the size contributed (in bytes) to the linked dSYM. "
  29. "The table is sorted by the output size listing the object files "
  30. "with the largest contribution first.">,
  31. Group<grp_general>;
  32. def verify: F<"verify">,
  33. HelpText<"Run the DWARF verifier on the linked DWARF debug info.">,
  34. Group<grp_general>;
  35. def no_output: F<"no-output">,
  36. HelpText<"Do the link in memory, but do not emit the result file.">,
  37. Group<grp_general>;
  38. def no_swiftmodule_timestamp: F<"no-swiftmodule-timestamp">,
  39. HelpText<"Don't check timestamp for swiftmodule files.">,
  40. Group<grp_general>;
  41. def no_odr: F<"no-odr">,
  42. HelpText<"Do not use ODR (One Definition Rule) for type uniquing.">,
  43. Group<grp_general>;
  44. def dump_debug_map: F<"dump-debug-map">,
  45. HelpText<"Parse and dump the debug map to standard output. No DWARF link will take place.">,
  46. Group<grp_general>;
  47. def yaml_input: Flag<["-", "--"], "y">,
  48. HelpText<"Treat the input file is a YAML debug map rather than a binary.">,
  49. Group<grp_general>;
  50. def papertrail: F<"papertrail">,
  51. HelpText<"Embed warnings in the linked DWARF debug info.">,
  52. Group<grp_general>;
  53. def assembly: Flag<["-", "--"], "S">,
  54. HelpText<"Output textual assembly instead of a binary dSYM companion file.">,
  55. Group<grp_general>;
  56. def symtab: F<"symtab">,
  57. HelpText<"Dumps the symbol table found in executable or object file(s) and exits.">,
  58. Group<grp_general>;
  59. def: Flag<["-"], "s">,
  60. Alias<symtab>,
  61. HelpText<"Alias for --symtab">,
  62. Group<grp_general>;
  63. def flat: F<"flat">,
  64. HelpText<"Produce a flat dSYM file (not a bundle).">,
  65. Group<grp_general>;
  66. def: Flag<["-"], "f">,
  67. Alias<flat>,
  68. HelpText<"Alias for --flat">,
  69. Group<grp_general>;
  70. def update: F<"update">,
  71. HelpText<"Updates existing dSYM files to contain the latest accelerator tables and other DWARF optimizations.">,
  72. Group<grp_general>;
  73. def: Flag<["-"], "u">,
  74. Alias<update>,
  75. HelpText<"Alias for --update">,
  76. Group<grp_general>;
  77. def output: Separate<["-", "--"], "o">,
  78. MetaVarName<"<filename>">,
  79. HelpText<"Specify the output file. Defaults to <input file>.dwarf">,
  80. Group<grp_general>;
  81. def: Separate<["--", "-"], "out">,
  82. MetaVarName<"<filename>">,
  83. Alias<output>,
  84. HelpText<"Alias for -o">,
  85. Group<grp_general>;
  86. def: Joined<["--", "-"], "out=">, Alias<output>;
  87. def: Joined<["-", "--"], "o=">, Alias<output>;
  88. def oso_prepend_path: Separate<["--", "-"], "oso-prepend-path">,
  89. MetaVarName<"<path>">,
  90. HelpText<"Specify a directory to prepend to the paths of object files.">,
  91. Group<grp_general>;
  92. def: Joined<["--", "-"], "oso-prepend-path=">, Alias<oso_prepend_path>;
  93. def object_prefix_map: Separate<["--", "-"], "object-prefix-map">,
  94. MetaVarName<"<prefix=remapped>">,
  95. HelpText<"Remap object file paths (but no source paths) before processing."
  96. "Use this for Clang objects where the module cache location was"
  97. "remapped using -fdebug-prefix-map; to help dsymutil"
  98. "find the Clang module cache.">,
  99. Group<grp_general>;
  100. def: Joined<["--", "-"], "object-prefix-map=">, Alias<object_prefix_map>;
  101. def symbolmap: Separate<["--", "-"], "symbol-map">,
  102. MetaVarName<"<bcsymbolmap>">,
  103. HelpText<"Updates the existing dSYMs inplace using symbol map specified.">,
  104. Group<grp_general>;
  105. def: Joined<["--", "-"], "symbol-map=">, Alias<symbolmap>;
  106. def arch: Separate<["--", "-"], "arch">,
  107. MetaVarName<"<arch>">,
  108. HelpText<"Link DWARF debug information only for specified CPU architecture"
  109. "types. This option can be specified multiple times, once for each"
  110. "desired architecture. All CPU architectures will be linked by"
  111. "default.">,
  112. Group<grp_general>;
  113. def: Joined<["--", "-"], "arch=">, Alias<arch>;
  114. def accelerator: Separate<["--", "-"], "accelerator">,
  115. MetaVarName<"<accelerator type>">,
  116. HelpText<"Specify the desired type of accelerator table. Valid options are 'Apple' (.apple_names, .apple_namespaces, .apple_types, .apple_objc), 'Dwarf' (.debug_names), 'Pub' (.debug_pubnames, .debug_pubtypes) and 'Default'">,
  117. Group<grp_general>;
  118. def: Joined<["--", "-"], "accelerator=">, Alias<accelerator>;
  119. def toolchain: Separate<["--", "-"], "toolchain">,
  120. MetaVarName<"<toolchain>">,
  121. HelpText<"Embed toolchain information in dSYM bundle.">,
  122. Group<grp_general>;
  123. def threads: Separate<["--", "-"], "num-threads">,
  124. MetaVarName<"<threads>">,
  125. HelpText<"Specifies the maximum number of simultaneous threads to use when linking multiple architectures.">,
  126. Group<grp_general>;
  127. def: Separate<["-"], "j">,
  128. MetaVarName<"<threads>">,
  129. HelpText<"Alias for --num-threads">,
  130. Group<grp_general>;
  131. def gen_reproducer: F<"gen-reproducer">,
  132. HelpText<"Generate a reproducer consisting of the input object files.">,
  133. Group<grp_general>;
  134. def use_reproducer: Separate<["--", "-"], "use-reproducer">,
  135. MetaVarName<"<path>">,
  136. HelpText<"Use the object files from the given reproducer path.">,
  137. Group<grp_general>;
  138. def: Joined<["--", "-"], "use-reproducer=">, Alias<use_reproducer>;
  139. def remarks_prepend_path: Separate<["--", "-"], "remarks-prepend-path">,
  140. MetaVarName<"<path>">,
  141. HelpText<"Specify a directory to prepend to the paths of the external remark files.">,
  142. Group<grp_general>;
  143. def: Joined<["--", "-"], "remarks-prepend-path=">, Alias<remarks_prepend_path>;
  144. def remarks_output_format: Separate<["--", "-"], "remarks-output-format">,
  145. MetaVarName<"<format>">,
  146. HelpText<"Specify the format to be used when serializing the linked remarks.">,
  147. Group<grp_general>;
  148. def: Joined<["--", "-"], "remarks-output-format=">, Alias<remarks_output_format>;