summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/StripOpts.td
blob: 1d7a1aec14d47ddb67e312268ea410b17a0e01c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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">;

defm remove_section : Eq<"remove-section">,
                      MetaVarName<"section">,
                      HelpText<"Remove <section>">;

def R : JoinedOrSeparate<["-"], "R">,
        Alias<remove_section>;
OpenPOWER on IntegriCloud