[lld] r267032 - ELF: support -- version of discard-{all,locals}
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 11:29:13 PDT 2016
Author: compnerd
Date: Thu Apr 21 13:29:13 2016
New Revision: 267032
URL: http://llvm.org/viewvc/llvm-project?rev=267032&view=rev
Log:
ELF: support -- version of discard-{all,locals}
GNU ld and gold only support the discard-all and discard-locals with two dashes.
Retain the compatibility with the one dash spelling, but also accept the two
dashed form.
Modified:
lld/trunk/ELF/Options.td
Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=267032&r1=267031&r2=267032&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Thu Apr 21 13:29:13 2016
@@ -32,10 +32,10 @@ def as_needed : Flag<["--"], "as-needed"
def disable_new_dtags : Flag<["--"], "disable-new-dtags">,
HelpText<"Disable new dynamic tags">;
-def discard_all : Flag<["-"], "discard-all">,
+def discard_all : Flag<["--", "-"], "discard-all">,
HelpText<"Delete all local symbols">;
-def discard_locals : Flag<["-"], "discard-locals">,
+def discard_locals : Flag<["--", "-"], "discard-locals">,
HelpText<"Delete temporary local symbols">;
def discard_none : Flag<["-"], "discard-none">,
More information about the llvm-commits
mailing list