Respect alignments better.
llvm-svn: 83328
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user