include "llvm/Option/OptParser.td" multiclass Eq { def NAME: Separate<["--", "-"], name>; def NAME # _eq: Joined<["--", "-"], name # "=">, Alias(NAME)>; } def help : Flag<["-", "--"], "help">; defm output : Eq<"o">, MetaVarName<"output">, HelpText<"Write output to ">; def strip_all : Flag<["-", "--"], "strip-all">, HelpText<"Remove non-allocated sections other than .gnu.warning* sections">; def strip_debug : Flag<["-", "--"], "strip-debug">, HelpText<"Remove debugging symbols only">; def d : Flag<["-"], "d">, Alias; def g : Flag<["-"], "g">, Alias; def S : Flag<["-"], "S">, Alias; defm remove_section : Eq<"remove-section">, MetaVarName<"section">, HelpText<"Remove
">; def R : JoinedOrSeparate<["-"], "R">, Alias; defm keep_symbol : Eq<"keep-symbol">, MetaVarName<"symbol">, HelpText<"Do not remove symbol ">; def K : JoinedOrSeparate<["-"], "K">, Alias; def discard_all : Flag<["-", "--"], "discard-all">, HelpText<"Remove all local symbols except file and section symbols">; def x : Flag<["-"], "x">, Alias; def strip_unneeded : Flag<["-", "--"], "strip-unneeded">, HelpText<"Remove all symbols not needed by relocations">;