OtoolOpts.td 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. include "llvm/Option/OptParser.td"
  2. def help : Flag<["--"], "help">, HelpText<"print help">;
  3. def help_hidden : Flag<["--"], "help-hidden">,
  4. HelpText<"print help for hidden flags">;
  5. def arch : Separate<["-"], "arch">,
  6. HelpText<"select slice of universal Mach-O file">;
  7. def C : Flag<["-"], "C">, HelpText<"print linker optimization hints">;
  8. def d : Flag<["-"], "d">, HelpText<"print data section">;
  9. def D : Flag<["-"], "D">, HelpText<"print shared library id">;
  10. def f : Flag<["-"], "f">, HelpText<"print universal headers">;
  11. def G : Flag<["-"], "G">, HelpText<"print data-in-code table">;
  12. def h : Flag<["-"], "h">, HelpText<"print mach header">;
  13. def I : Flag<["-"], "I">, HelpText<"print indirect symbol table">;
  14. def j : Flag<["-"], "j">, HelpText<"print opcode bytes">;
  15. def l : Flag<["-"], "l">, HelpText<"print load commnads">;
  16. def L : Flag<["-"], "L">, HelpText<"print used shared libraries">;
  17. def mcpu_EQ : Joined<["-"], "mcpu=">, HelpText<"select cpu for disassembly">;
  18. def o : Flag<["-"], "o">, HelpText<"print Objective-C segment">;
  19. def p : Separate<["-"], "p">,
  20. MetaVarName<"<function name>">,
  21. HelpText<"start disassembly at <function name>">;
  22. def P : Flag<["-"], "P">, HelpText<"print __TEXT,__info_plist section as strings">;
  23. def : Flag<["-"], "q">, Flags<[HelpHidden]>,
  24. HelpText<"use LLVM's disassembler (default)">;
  25. def r : Flag<["-"], "r">, HelpText<"print relocation entries">;
  26. def s : MultiArg<["-"], "s", 2>,
  27. MetaVarName<"<segname> <sectname>">,
  28. HelpText<"print contents of section">;
  29. def t : Flag<["-"], "t">, HelpText<"print text section">;
  30. def version : Flag<["--"], "version">, HelpText<"print version">;
  31. def v : Flag<["-"], "v">,
  32. HelpText<"verbose output / disassemble when printing text sections">;
  33. def V : Flag<["-"], "V">,
  34. HelpText<"symbolize disassembled operands (implies -v)">;
  35. def x : Flag<["-"], "x">, HelpText<"print all text sections">;
  36. def X : Flag<["-"], "X">, HelpText<"omit leading addresses or headers">;
  37. // Not (yet?) implemented:
  38. // def a : Flag<["-"], "a">, HelpText<"print archive header">;
  39. // -c print argument strings of a core file
  40. // -m don't use archive(member) syntax
  41. // -dyld_info
  42. // -dyld_opcodes
  43. // -chained_fixups
  44. // -addr_slide=arg
  45. // -function_offsets
  46. // Obsolete and unsupported:
  47. def grp_obsolete : OptionGroup<"kind">,
  48. HelpText<"Obsolete and unsupported flags">;
  49. def : Flag<["-"], "B">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  50. HelpText<"force Thum disassembly (ARM 32-bit objects only)">;
  51. def : Flag<["-"], "H">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  52. HelpText<"print two-level hints table">;
  53. def : Flag<["-"], "M">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  54. HelpText<"print module table of shared library">;
  55. def : Flag<["-"], "R">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  56. HelpText<"print reference table of shared library">;
  57. def : Flag<["-"], "S">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  58. HelpText<"print table of contents of library">;
  59. def : Flag<["-"], "T">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  60. HelpText<"print table of contents of shared library">;
  61. def : Flag<["-"], "Q">, Flags<[HelpHidden]>, Group<grp_obsolete>,
  62. HelpText<"llvm-otool cannot use otool-classic's disassembler">;