[PATCH] D56629: [llvm-readelf] Allow single-letter flags to be merged.

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 11 18:22:53 PST 2019


rupprecht created this revision.
rupprecht added reviewers: jhenderson, kristina, echristo, phosek.
Herald added a subscriber: llvm-commits.

This patch adds support for merged arguments (e.g. -SW == -S -W) for llvm-readelf.

No changes are intended for llvm-readobj. There are a few short flags (-sd, -sr, -st, -dt) that would conflict with grouped single letter flags, and having only some grouped flags might be confusing. So, allow merged flags for readelf compatibility, but force separate args for llvm-readobj. From what I can tell, these two-letter flags are only used with llvm-readobj, not llvm-readelf.

This fixes PR40064.


Repository:
  rL LLVM

https://reviews.llvm.org/D56629

Files:
  test/tools/llvm-readobj/merged.test
  tools/llvm-readobj/llvm-readobj.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56629.181410.patch
Type: text/x-patch
Size: 5593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190112/c89b25dd/attachment.bin>


More information about the llvm-commits mailing list