[PATCH] D35619: [ELF] - Introduce multiclass JSEq helper for Options.td

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 05:57:14 PDT 2017


grimar created this revision.
Herald added a subscriber: emaste.

JSEq helper allows to define `XXX` and `XXX=` options forms easily.
Patch should allow to filter out 'XXX=' options (at least most of) from -help output with
a single line change. And it is itself IMO a nice cleanup.

Patch adds testcases and changes few options behavior,
for example it is possible to use -o/--output x/-output x now,
that is consistent with gold and simplifies options declarations.


https://reviews.llvm.org/D35619

Files:
  ELF/Driver.cpp
  ELF/DriverUtils.cpp
  ELF/Options.td
  test/ELF/compress-debug-sections.s
  test/ELF/driver.test
  test/ELF/duplicated-synthetic-sym.s
  test/ELF/filter.s
  test/ELF/image-base.s
  test/ELF/libsearch.s
  test/ELF/sysroot.s
  test/ELF/unresolved-symbols.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35619.107291.patch
Type: text/x-patch
Size: 20855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170719/bae4eadf/attachment.bin>


More information about the llvm-commits mailing list