From a64e6ecfe13f981ffbc4c519dfd3a4e12071e98a Mon Sep 17 00:00:00 2001 From: gbreynoo Date: Fri, 15 Oct 2021 16:27:53 +0100 Subject: [PATCH] [llvm-readelf] Make -W an alias of --wide Currently -W and --wide are treated as two options as they are only included for gnu readelf compatibility and ignored. This change makes -W an alias of --wide to be consistent with other option aliases. Differential Revision: https://reviews.llvm.org/D111731 --- llvm/tools/llvm-readobj/Opts.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/tools/llvm-readobj/Opts.td b/llvm/tools/llvm-readobj/Opts.td index 148be3e42951..fac7e3b8d866 100644 --- a/llvm/tools/llvm-readobj/Opts.td +++ b/llvm/tools/llvm-readobj/Opts.td @@ -87,8 +87,8 @@ def help : FF<"help", "Display this help">; def version : FF<"version", "Display the version">; // Ignored for GNU readelf compatibility. -def : F<"W", "Ignored for GNU readelf compatibility">; -def : FF<"wide", "Ignored for GNU readelf compatibility">; +def wide : FF<"wide", "Ignored for GNU readelf compatibility">; +def : F<"W", "Ignored for GNU readelf compatibility">, Alias; // Traditional llvm-readobj Aliases. def : Flag<["--"], "dt">, Alias, HelpText<"Alias for --dyn-syms">;