llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Improve llvm-objdump help text

Open jh7370 opened this issue 7 years ago • 2 comments

Bugzilla Link 42250
Resolution FIXED
Resolved on Jul 22, 2021 00:36
Version trunk
OS Windows NT
CC @gbreynoo,@MaskRay

Extended Description

I noticed a few issues with the help text of llvm-objdump, which should probably be fixed.

  • -cfg is mentioned in the documentation but not in the help text.
  • The -m/--macho options are not listed as Mach-O specific options in the help text, unlike other Mach-O related options.
  • -x86-asm-syntax is explicitly hidden in the help text, despite being in the documentation. I don't know why.
  • Some short options are in the documentation but not the help text (e.g. -g). See also http://lists.llvm.org/pipermail/llvm-dev/2019-June/132917.html.

jh7370 avatar Jun 12 '19 11:06 jh7370

Agree that this is fixed.

MaskRay avatar Jul 22 '21 07:07 MaskRay

I'd say this ticket is now fixed:

  • The cfg option was removed from the command guide.
  • -x86-asm-syntax is no longer hidden.
  • all short options are now in help text.

Regarding the macho option, I think the macho switch makes more sense as a general switch rather than in the macho section as it enables macho behaviour, rather than being macho specific behaviour itself.This may come down to personal preference though.

Due to possible disagreement with --macho I won't close this ticket myself.

gbreynoo avatar May 05 '21 15:05 gbreynoo