Allow .lcomm with alignment on ELF targets.
[oota-llvm.git] / lib / Target / PowerPC / MCTargetDesc / PPCMCAsmInfo.cpp
index b95a2ac13e04cf1c9b05558c505989e000ff777d..51ffc5246ec3b54124165010374a8da76e6497fc 100644 (file)
@@ -73,6 +73,7 @@ PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit, const Triple& T) {
   ZeroDirective = "\t.space\t";
   Data64bitsDirective = is64Bit ? "\t.quad\t" : nullptr;
   AssemblerDialect = 1;           // New-Style mnemonics.
+  LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
 
   if (T.getOS() == llvm::Triple::FreeBSD ||
       (T.getOS() == llvm::Triple::NetBSD && !is64Bit) ||