From 1b5bf445a0f4e3a75c19cafbe003caafeaabc0e7 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 21 Apr 2016 18:29:13 +0000 Subject: 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. llvm-svn: 267032 --- lld/ELF/Options.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index d016c39899e..8855c05ca8e 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -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">, -- cgit v1.2.3