Skip to content

llvm-objdump --mcpu=help doesn't work without an input file #150567

@JonathonReinhart

Description

@JonathonReinhart
$ llvm-objdump --version
Fuchsia LLVM version 21.0.0git
...

--help indicates that --mcpu=help should provide details for the --mcpu option:

$ llvm-objdump --help
OVERVIEW: llvm object file dumper

USAGE: llvm-objdump [options] <input object files>

OPTIONS:
  ...
  --mcpu=cpu-name         Target a specific cpu type (--mcpu=help for details) 
  ...

If I do only that, it just outputs the normal help again:

$ llvm-objdump --mcpu=help
OVERVIEW: llvm object file dumper

...

But if I provide it an input file, then it provides the CPU help:

$ llvm-objdump --mcpu=help -d a.out >/dev/null
Available CPUs for this target:

  arm1020e       - Select the arm1020e processor.
  ...

It seems like --mcpu=help should bypass the rest of the argument checking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions