[lld] r265723 - ELF: Define -S as an alias for --strip-debug.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 14:10:10 PDT 2016


Author: ruiu
Date: Thu Apr  7 16:10:09 2016
New Revision: 265723

URL: http://llvm.org/viewvc/llvm-project?rev=265723&view=rev
Log:
ELF: Define -S as an alias for --strip-debug.

Modified:
    lld/trunk/ELF/Options.td
    lld/trunk/test/ELF/strip-debug.s

Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=265723&r1=265722&r2=265723&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Thu Apr  7 16:10:09 2016
@@ -189,6 +189,7 @@ def alias_soname_soname : Separate<["-"]
 def alias_script_T : JoinedOrSeparate<["-"], "T">, Alias<script>;
 def alias_trace : Flag<["-"], "t">, Alias<trace>;
 def alias_strip_all: Flag<["-"], "s">, Alias<strip_all>;
+def alias_strip_debug_S: Flag<["-"], "S">, Alias<strip_debug>;
 def alias_undefined_u : JoinedOrSeparate<["-"], "u">, Alias<undefined>;
 def alias_wrap_wrap : Joined<["--", "-"], "wrap=">, Alias<wrap>;
 

Modified: lld/trunk/test/ELF/strip-debug.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/strip-debug.s?rev=265723&r1=265722&r2=265723&view=diff
==============================================================================
--- lld/trunk/test/ELF/strip-debug.s (original)
+++ lld/trunk/test/ELF/strip-debug.s Thu Apr  7 16:10:09 2016
@@ -5,6 +5,8 @@
 # RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=DEFAULT %s
 # RUN: ld.lld %t -o %t2 --strip-debug
 # RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s
+# RUN: ld.lld %t -o %t2 -S
+# RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s
 # RUN: ld.lld %t -o %t2 --strip-all
 # RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s
 




More information about the llvm-commits mailing list