[llvm] 1fe8e78 - [X86] Rename the x86-asm-syntax variable. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 27 17:29:43 PDT 2024
Author: Fangrui Song
Date: 2024-10-27T17:29:38-07:00
New Revision: 1fe8e7838bb5118b9e48fa15fa21a4638bae8ae1
URL: https://github.com/llvm/llvm-project/commit/1fe8e7838bb5118b9e48fa15fa21a4638bae8ae1
DIFF: https://github.com/llvm/llvm-project/commit/1fe8e7838bb5118b9e48fa15fa21a4638bae8ae1.diff
LOG: [X86] Rename the x86-asm-syntax variable. NFC
Follow-up to #109360. x86-asm-syntax is for input instead of output.
Added:
Modified:
llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
index 47eb617c06ac5b..39b0f7c4c4c1e6 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
@@ -23,9 +23,9 @@ enum AsmWriterFlavorTy {
ATT = 0, Intel = 1
};
-static cl::opt<AsmWriterFlavorTy> AsmWriterFlavor(
+static cl::opt<AsmWriterFlavorTy> X86AsmSyntax(
"x86-asm-syntax", cl::init(ATT), cl::Hidden,
- cl::desc("Choose style of code to emit from X86 backend:"),
+ cl::desc("Select the assembly style for input"),
cl::values(clEnumValN(ATT, "att", "Emit AT&T-style assembly"),
clEnumValN(Intel, "intel", "Emit Intel-style assembly")));
@@ -41,7 +41,7 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &T) {
if (is64Bit)
CodePointerSize = CalleeSaveStackSlotSize = 8;
- AssemblerDialect = AsmWriterFlavor;
+ AssemblerDialect = X86AsmSyntax;
if (!is64Bit)
Data64bitsDirective = nullptr; // we can't emit a 64-bit unit
@@ -89,7 +89,7 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) {
// OTOH, stack slot size is always 8 for x86-64, even with the x32 ABI.
CalleeSaveStackSlotSize = is64Bit ? 8 : 4;
- AssemblerDialect = AsmWriterFlavor;
+ AssemblerDialect = X86AsmSyntax;
// Debug Information
SupportsDebugInformation = true;
@@ -126,7 +126,7 @@ X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) {
ExceptionsType = ExceptionHandling::WinEH;
- AssemblerDialect = AsmWriterFlavor;
+ AssemblerDialect = X86AsmSyntax;
AllowAtInName = true;
}
@@ -159,7 +159,7 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
ExceptionsType = ExceptionHandling::DwarfCFI;
}
- AssemblerDialect = AsmWriterFlavor;
+ AssemblerDialect = X86AsmSyntax;
AllowAtInName = true;
}
More information about the llvm-commits
mailing list