[llvm] [llvm-objdump] Add triple support to `mcpu=help` (PR #165661)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 00:50:13 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:
I think you should check again, because that isn't what I've seen. I've done that exact combination, using an x86_64 object file and a recent `main` llvm-objdump build. When --triple=x86_64 is specified, both disassembly and help use x86_64 as the target, whereas when using --triple=arm, it uses arm.
I also feel like we've had this discussion multiple times now.
https://github.com/llvm/llvm-project/pull/165661
More information about the llvm-commits
mailing list