For ELF, .comm takes alignment value as the optional 3rd argument. It must be

specified in bytes.

llvm-svn: 26043
This commit is contained in:
Evan Cheng 2006-02-07 21:54:08 +00:00
parent 203b2f1288
commit ec212fb66d
1 changed files with 3 additions and 1 deletions

View File

@ -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 {