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