[llvm] [llvm-ml] clarify --m flag usage in help (PR #170054)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 30 14:09:25 PST 2025


https://github.com/Attractadore created https://github.com/llvm/llvm-project/pull/170054

Current help info is misleading, it sounds like you must use --mx86 for 32-bit mode and --mx86-64 for 64-bit mode. Clarify this help message.

>From 14c911cfe44d047a3226d113bd73837c36e426e3 Mon Sep 17 00:00:00 2001
From: Attractadore <28895114+Attractadore at users.noreply.github.com>
Date: Sun, 30 Nov 2025 14:06:28 -0800
Subject: [PATCH] [llvm-ml] clarify --m flag usage in help

---
 llvm/tools/llvm-ml/Opts.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/tools/llvm-ml/Opts.td b/llvm/tools/llvm-ml/Opts.td
index 8b748bb64b278..58670720a9a6a 100644
--- a/llvm/tools/llvm-ml/Opts.td
+++ b/llvm/tools/llvm-ml/Opts.td
@@ -29,7 +29,7 @@ class UnsupportedSeparate<string name> : Separate<["/", "-"], name>,
                                          Group<unsupported_Group>;
 
 def bitness : LLVMJoined<"m">, Values<"32,64">,
-              HelpText<"Target platform (x86 or x86-64)">;
+              HelpText<"Target platform (set to 32 for x86 or to 64 for x86-64)">;
 def as_lex : LLVMFlag<"as-lex">,
              HelpText<"Lex tokens from a file without assembling">;
 def debug : LLVMFlag<"debug">, Flags<[HelpHidden]>,



More information about the llvm-commits mailing list