[PATCH] D42952: [ELF] - Make printHelp() print all targets supported.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 02:59:29 PST 2018
grimar created this revision.
grimar added reviewers: ruiu, espindola.
Herald added subscribers: fedor.sergeev, emaste, dylanmckay, jyknight.
We hardcode target names in `printHelp`.
As a result it is easy to forget to update this list
when new target is added.
For example we did not list elf32-avr and
elf64-sparc targets though support them.
Patch refactors printHelp() implementation
to fix the issue.
https://reviews.llvm.org/D42952
Files:
ELF/Driver.cpp
ELF/Driver.h
ELF/DriverUtils.cpp
ELF/Target.cpp
ELF/Target.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42952.132962.patch
Type: text/x-patch
Size: 5891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180206/46d1b5f9/attachment.bin>
More information about the llvm-commits
mailing list