Skip to content

Commit

Permalink
[llvm-readelf] Make -W an alias of --wide
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gbreynoo committed Oct 15, 2021
1 parent 8cd9c35 commit a64e6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/tools/llvm-readobj/Opts.td
Expand Up @@ -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">;
Expand Down

0 comments on commit a64e6ec

Please sign in to comment.