[llvm] [llvm-objdump] Add triple support to `mcpu=help` (PR #165661)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 04:53:35 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:

That isn't what I'm seeing. Please could you check again. Specifically, I have tried locally with an x86_64 object. If I run --mcpu=help without --triple, I get the help for x86_64, whereas if I use --triple, I get the help for whichever target triple I specify. We should be maintaining that original behaviour.

https://github.com/llvm/llvm-project/pull/165661


More information about the llvm-commits mailing list