Skip to content

Commit 1fe8e78

Browse files
committed
[X86] Rename the x86-asm-syntax variable. NFC
Follow-up to #109360. x86-asm-syntax is for input instead of output.
1 parent fb33af0 commit 1fe8e78

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ enum AsmWriterFlavorTy {
2323
ATT = 0, Intel = 1
2424
};
2525

26-
static cl::opt<AsmWriterFlavorTy> AsmWriterFlavor(
26+
static cl::opt<AsmWriterFlavorTy> X86AsmSyntax(
2727
"x86-asm-syntax", cl::init(ATT), cl::Hidden,
28-
cl::desc("Choose style of code to emit from X86 backend:"),
28+
cl::desc("Select the assembly style for input"),
2929
cl::values(clEnumValN(ATT, "att", "Emit AT&T-style assembly"),
3030
clEnumValN(Intel, "intel", "Emit Intel-style assembly")));
3131

@@ -41,7 +41,7 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &T) {
4141
if (is64Bit)
4242
CodePointerSize = CalleeSaveStackSlotSize = 8;
4343

44-
AssemblerDialect = AsmWriterFlavor;
44+
AssemblerDialect = X86AsmSyntax;
4545

4646
if (!is64Bit)
4747
Data64bitsDirective = nullptr; // we can't emit a 64-bit unit
@@ -89,7 +89,7 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) {
8989
// OTOH, stack slot size is always 8 for x86-64, even with the x32 ABI.
9090
CalleeSaveStackSlotSize = is64Bit ? 8 : 4;
9191

92-
AssemblerDialect = AsmWriterFlavor;
92+
AssemblerDialect = X86AsmSyntax;
9393

9494
// Debug Information
9595
SupportsDebugInformation = true;
@@ -126,7 +126,7 @@ X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) {
126126

127127
ExceptionsType = ExceptionHandling::WinEH;
128128

129-
AssemblerDialect = AsmWriterFlavor;
129+
AssemblerDialect = X86AsmSyntax;
130130

131131
AllowAtInName = true;
132132
}
@@ -159,7 +159,7 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
159159
ExceptionsType = ExceptionHandling::DwarfCFI;
160160
}
161161

162-
AssemblerDialect = AsmWriterFlavor;
162+
AssemblerDialect = X86AsmSyntax;
163163

164164
AllowAtInName = true;
165165
}

0 commit comments

Comments
 (0)