[llvm] [MC][X86/M68k] Emit syntax directive for AT&T (PR #167234)
Raul Tambre via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 13 08:06:28 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) {
----------------
tambry wrote:
You're correct, I don't even see any code to parse the `.intel_syntax` directive for Motorola 68000.
I assumed per the existing code and @mshockwave's feedback that it was however applicable somehow.
But seems it's more likely just a copy-paste leftover.
https://github.com/llvm/llvm-project/pull/167234
More information about the llvm-commits
mailing list