[llvm] a64e6ec - [llvm-readelf] Make -W an alias of --wide

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 15 08:28:33 PDT 2021


Author: gbreynoo
Date: 2021-10-15T16:27:53+01:00
New Revision: a64e6ecfe13f981ffbc4c519dfd3a4e12071e98a

URL: https://github.com/llvm/llvm-project/commit/a64e6ecfe13f981ffbc4c519dfd3a4e12071e98a
DIFF: https://github.com/llvm/llvm-project/commit/a64e6ecfe13f981ffbc4c519dfd3a4e12071e98a.diff

LOG: [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

Added: 
    

Modified: 
    llvm/tools/llvm-readobj/Opts.td

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-readobj/Opts.td b/llvm/tools/llvm-readobj/Opts.td
index 148be3e429512..fac7e3b8d866b 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<wide>;
 
 // Traditional llvm-readobj Aliases.
 def : Flag<["--"], "dt">, Alias<dyn_syms>, HelpText<"Alias for --dyn-syms">;


        


More information about the llvm-commits mailing list