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

Ruoyu Qiu via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 4 00:20:08 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
----------------
cabbaken wrote:

Additionally, I noticed that when using `-d + --triple + object file`, the final output will be arm help message no matter what the `--triple` is.
This seems like unexpected behavior and was quite misleading me at first.

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


More information about the llvm-commits mailing list