Update for llvm API change.

llvm-svn: 208717
This commit is contained in:
Rafael Espindola
2014-05-13 18:45:53 +00:00
parent 99e05cf163
commit ee076a27ce
2 changed files with 5 additions and 6 deletions

View File

@@ -725,14 +725,13 @@ void CodeGenModule::SetCommonAttributes(const Decl *D,
}
void CodeGenModule::setNonAliasAttributes(const Decl *D,
llvm::GlobalValue *GV) {
assert(!isa<llvm::GlobalAlias>(GV));
SetCommonAttributes(D, GV);
llvm::GlobalObject *GO) {
SetCommonAttributes(D, GO);
if (const SectionAttr *SA = D->getAttr<SectionAttr>())
GV->setSection(SA->getName());
GO->setSection(SA->getName());
getTargetCodeGenInfo().SetTargetAttributes(D, GV, *this);
getTargetCodeGenInfo().SetTargetAttributes(D, GO, *this);
}
void CodeGenModule::SetInternalFunctionAttributes(const Decl *D,