From: Evan Cheng Date: Tue, 7 Feb 2006 21:54:08 +0000 (+0000) Subject: For ELF, .comm takes alignment value as the optional 3rd argument. It must be X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=315421e77c1912038170762df85ea576f29371f6;p=oota-llvm.git For ELF, .comm takes alignment value as the optional 3rd argument. It must be specified in bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26043 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index dd19d9fd2a0..1b05691a0be 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -105,7 +105,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) { O << COMMDirective << name << "," << Size; } else { SwitchSection(".local", I); - O << COMMDirective << name << "," << Size << "," << Align; + O << COMMDirective << name << "," << Size; + if (COMMDirectiveTakesAlignment) + O << "," << (AlignmentIsInBytes ? (1 << Align) : Align); } O << "\t\t" << CommentString << " '" << I->getName() << "'\n"; } else {