1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/tools/llvm-objcopy/StripOpts.td
Alexander Shaposhnikov 372d313844 [llvm-objcopy][MachO] Add support for removing Swift symbols
cctools strip has the option "-T" which removes Swift symbols.
This diff implements this option in llvm-strip for MachO.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D80099
2020-05-26 16:49:56 -07:00

21 lines
641 B
TableGen

include "CommonOpts.td"
def output : JoinedOrSeparate<["-"], "o">, HelpText<"Write output to <file>">,
MetaVarName<"<file>">;
def s : Flag<["-"], "s">,
Alias<strip_all>,
HelpText<"Alias for --strip-all">;
def no_strip_all : Flag<["--"], "no-strip-all">,
HelpText<"Disable --strip-all">;
def d : Flag<["-"], "d">,
Alias<strip_debug>,
HelpText<"Alias for --strip-debug">;
def S : Flag<["-"], "S">,
Alias<strip_debug>,
HelpText<"Alias for --strip-debug">;
def strip_swift_symbols : Flag<["-"], "T">,
HelpText<"Remove Swift symbols">;