[PATCH] D56853: [llvm-objdump] - Show aliases in -help.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 29 04:55:35 PST 2019
grimar added a comment.
In D56853#1362809 <https://reviews.llvm.org/D56853#1362809>, @jhenderson wrote:
> I have a feeling that the option categorisation is more general to LLVM, rather than specifically llvm-objdump, from memory, but I haven't dug into this recently. IIRC, the "Generic" options category is not provided by llvm-objdump at all, and is instead somewhere in the CommandLine library.
Yes. And the current behavior seems intentional (it is documented): to print command line options as an uncategorized list, `-help-list` can be used (https://llvm.org/docs/CommandLine.html#grouping-options-into-categories).
FTR, LLD, llvm-objcopy and few other tools use a different approach based on `llvm::opt::OptTable` for parsing options and we have no strange categories there.
Seems if we want to change this for llvm-objdump we probably might want to reimplement it in the same way I guess.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56853/new/
https://reviews.llvm.org/D56853
More information about the llvm-commits
mailing list