[clang] [llvm] [clang] Add cc1 --output-asm-variant= to set output syntax (PR #109360)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 13:33:31 PDT 2024


================
@@ -7209,6 +7209,9 @@ def fuse_ctor_homing: Flag<["-"], "fuse-ctor-homing">,
 def as_secure_log_file : Separate<["-"], "as-secure-log-file">,
   HelpText<"Emit .secure_log_unique directives to this filename.">,
   MarshallingInfoString<CodeGenOpts<"AsSecureLogFile">>;
+def output_asm_variant : Joined<["--"], "output-asm-variant=">,
+  HelpText<"Select the asm variant (integer) to use for output">,
----------------
mstorsjo wrote:

> integer looks better for non-x86 targets

Is this option used for non-x86 targets somewhere too? In that case I understand why it's kept in a generic form.

Anyway, thanks for discussing it, this sounds reasonable to me, so feel free to merge it in this form. (I guess there's no guarantee to keep these internal options untouched, so if needed we can change it in the future anyway.)

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


More information about the llvm-commits mailing list