[llvm] [llvm-objdump] Add triple support to `mcpu=help` (PR #165661)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 1 06:07:17 PST 2025
================
@@ -3533,6 +3533,35 @@ commaSeparatedValues(const llvm::opt::InputArgList &InputArgs, int ID) {
return Values;
}
+static void mcpuHelp() {
+ std::string Error;
+ Triple DummyTriple;
+
+ if (!TripleName.empty())
+ DummyTriple.setTriple(TripleName);
+ else {
+ // If the target triple is derived from the files, we display help message
----------------
jh7370 wrote:
> we would need to insert code into disassembleObject(), which would significantly increase its complexity.
Is this necessary for this specific case?
Why would we need to insert any code into `disassembleObject()`? The `--triple` option already controls `--mcpu=help` output when an input is specified (or a.out is present). In fact, I think your PR title is a bit misleading in this regard.
https://github.com/llvm/llvm-project/pull/165661
More information about the llvm-commits
mailing list