[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:38:59 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:
https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
https://github.com/llvm/llvm-project/pull/167234
More information about the llvm-commits
mailing list