[PATCH] D76250: [llvm-objdump] Only reject -long-option in objdump mode
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 18 09:47:28 PDT 2020
MaskRay added a comment.
I was also of the opinion that "llvm-objdump" (argv[0]) and "objdump" (argv[0]) should reject single-dash `-long-option`.
However, @compnerd mentioned that on Mach-O platforms, `-long-option` may be used. Xcode uses the source code of llvm-objdump but it is not clear how they use the tool. They have patches and tests which are not upstreamed. If they provided a concrete tool name, I would like to allow `--long-option` when argv[0] matches that tool name (may be otool or something).
If we know how they use the tool, for example, if they always pass `--macho`, we can get rid of the alias `-m`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76250/new/
https://reviews.llvm.org/D76250
More information about the llvm-commits
mailing list