summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-04-21 18:29:13 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-04-21 18:29:13 +0000
commit1b5bf445a0f4e3a75c19cafbe003caafeaabc0e7 (patch)
tree3fb22f56d3a34f398da445cd9bbbabda30306681
parent1761dddc4f272817c53b621808703a32b16cc3cb (diff)
downloadbcm5719-llvm-1b5bf445a0f4e3a75c19cafbe003caafeaabc0e7.tar.gz
bcm5719-llvm-1b5bf445a0f4e3a75c19cafbe003caafeaabc0e7.zip
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
-rw-r--r--lld/ELF/Options.td4
1 files 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">,
OpenPOWER on IntegriCloud