2018-05-08 03:32:09 +08:00
|
|
|
include "llvm/Option/OptParser.td"
|
|
|
|
|
|
|
|
multiclass Eq<string name> {
|
|
|
|
def NAME: Separate<["--", "-"], name>;
|
|
|
|
def NAME # _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>;
|
|
|
|
}
|
|
|
|
|
|
|
|
def help : Flag<["-", "--"], "help">;
|
|
|
|
|
|
|
|
def strip_debug : Flag<["-", "--"], "strip-debug">,
|
|
|
|
HelpText<"Remove debugging symbols only">;
|
|
|
|
|
2018-05-11 13:27:06 +08:00
|
|
|
defm remove_section : Eq<"remove-section">,
|
|
|
|
MetaVarName<"section">,
|
|
|
|
HelpText<"Remove <section>">;
|
|
|
|
|
|
|
|
def R : JoinedOrSeparate<["-"], "R">,
|
|
|
|
Alias<remove_section>;
|