Respect alignments better.

llvm-svn: 83328
This commit is contained in:
Mike Stump 2009-10-05 21:58:44 +00:00
parent c2ac4f020b
commit c5e153c50e
1 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,9 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
if (D->hasAttr<NoInlineAttr>())
F->addFnAttr(llvm::Attribute::NoInline);
if (const AlignedAttr *AA = D->getAttr<AlignedAttr>())
F->setAlignment(AA->getAlignment()/8);
}
void CodeGenModule::SetCommonAttributes(const Decl *D,