Issue 150567
Summary llvm-objdump --mcpu=help doesn't work without an input file
Labels new issue
Assignees
Reporter 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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to