[llvm] [MC][X86/M68k] Emit syntax directive for AT&T (PR #167234)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 13 00:39:42 PST 2025
================
@@ -190,7 +190,11 @@ void M68kAsmPrinter::emitFunctionBodyStart() {}
void M68kAsmPrinter::emitFunctionBodyEnd() {}
void M68kAsmPrinter::emitStartOfAsmFile(Module &M) {
- OutStreamer->emitSyntaxDirective();
+ // m68k assemblers generally don't support .att_syntax so we only emit the
+ // directive for Intel syntax.
+ if (MAI->getAssemblerDialect() == InlineAsm::AD_Intel) {
----------------
MaskRay wrote:
I am not familiar with m68k, but does `AD_Intel` actually make sense or should we just use a constant here?
https://github.com/llvm/llvm-project/pull/167234
More information about the llvm-commits
mailing list