From a3e5d4982e1ff691ed222c2f16b03e2130fb272b Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 31 May 2018 20:46:22 +0000 Subject: [PATCH] Print out "Alias for -foo" instead of repeating the same help message for -foo. Since aliases don't actually need name, I removed it from Options.td to keep the definitions concise. Before: -( Ignored for compatibility with GNU unless you pass --warn-backrefs -) Ignored for compatibility with GNU unless you pass --warn-backrefs --allow-multiple-definition Allow multiple definitions --apply-dynamic-relocs Apply dynamic relocations to place --as-needed Only set DT_NEEDED for shared libraries if used --auxiliary= Set DT_AUXILIARY field to the specified name --Bdynamic Link against shared libraries --Bshareable Build a shared object ... After: -( Alias for --start-group -) Alias for --end-group --allow-multiple-definition Allow multiple definitions --apply-dynamic-relocs Apply dynamic relocations to place --as-needed Only set DT_NEEDED for shared libraries if used --auxiliary= Set DT_AUXILIARY field to the specified name --Bdynamic Link against shared libraries (default) --Bshareable Alias for --shared ... Differential Revision: https://reviews.llvm.org/D47588 llvm-svn: 333694 --- lld/ELF/Options.td | 97 +++++++++++++++++++++++---------------------- lld/test/ELF/help.s | 4 +- 2 files changed, 52 insertions(+), 49 deletions(-) diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index fd70e5cc820c..1d0f5d073ebe 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -352,45 +352,45 @@ def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"