This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] Remove Generic Options group from help text output
ClosedPublic

Authored by gbreynoo on Apr 30 2021, 10:40 AM.

Details

Summary

Looking at other tools using tablegen for help output, general options like --help are not separated from other options. This change removes the "Generic Options" option group so the options are listed together. the macho specific option group is left unaffected.

The test help.test was modified to reflect this change.

Diff Detail

Event Timeline

gbreynoo created this revision.Apr 30 2021, 10:40 AM
gbreynoo requested review of this revision.Apr 30 2021, 10:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2021, 10:40 AM
MaskRay accepted this revision.Apr 30 2021, 12:52 PM

Looks great!

This revision is now accepted and ready to land.Apr 30 2021, 12:52 PM
thakis added a comment.May 4 2021, 9:34 AM

Other tools don't have a major mode like llvm-objdump's --macho.

MaskRay added inline comments.May 4 2021, 9:36 AM
llvm/tools/llvm-objdump/ObjdumpOpts.td
11

Please fix this.

gbreynoo marked an inline comment as done.May 4 2021, 10:00 AM
gbreynoo added inline comments.
llvm/tools/llvm-objdump/ObjdumpOpts.td
11

I fixed this in a617e2064d69, I'm not sure why this diff isn't updating.