[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:42:44 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:
m68k doesn't seem to set `AssemblerDialect`. Can we just omit the directive?
https://github.com/llvm/llvm-project/pull/167234
More information about the llvm-commits
mailing list