[PATCH] D111731: [llvm-readelf] Make -W an alias of --wide
Owen Reynolds via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 08:33:46 PDT 2021
gbreynoo created this revision.
gbreynoo added reviewers: MaskRay, jhenderson.
Herald added subscribers: jeroen.dobbelaere, rupprecht.
gbreynoo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111731
Files:
llvm/tools/llvm-readobj/Opts.td
Index: llvm/tools/llvm-readobj/Opts.td
===================================================================
--- llvm/tools/llvm-readobj/Opts.td
+++ llvm/tools/llvm-readobj/Opts.td
@@ -87,8 +87,8 @@
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">;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111731.379410.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211013/ddccdf38/attachment.bin>
More information about the llvm-commits
mailing list