[lld] r267032 - ELF: support -- version of discard-{all,locals}

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 24 07:08:03 PDT 2016


Please delete the one dash version if we are the only one the supports it.

Cheers,
Rafael
On Apr 21, 2016 2:34 PM, "Saleem Abdulrasool via llvm-commits" <
llvm-commits at lists.llvm.org> wrote:

> 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">,
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160424/227e3fa0/attachment.html>


More information about the llvm-commits mailing list