[llvm] [MC][X86/M68k] Emit syntax directive for AT&T (PR #167234)
Raul Tambre via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 10 13:00:12 PST 2025
================
@@ -190,7 +190,9 @@ void M68kAsmPrinter::emitFunctionBodyStart() {}
void M68kAsmPrinter::emitFunctionBodyEnd() {}
void M68kAsmPrinter::emitStartOfAsmFile(Module &M) {
- OutStreamer->emitSyntaxDirective();
+ const bool IntelSyntax{MAI->getAssemblerDialect() == InlineAsm::AD_Intel};
+ OutStreamer->emitSyntaxDirective(IntelSyntax ? "intel" : "att",
----------------
tambry wrote:
Updated to emit only `.intel_syntax` for the m68k.
https://github.com/llvm/llvm-project/pull/167234
More information about the llvm-commits
mailing list