r208717 - Update for llvm API change.
Rafael Espindola
rafael.espindola at gmail.com
Tue May 13 11:45:53 PDT 2014
Author: rafael
Date: Tue May 13 13:45:53 2014
New Revision: 208717
URL: http://llvm.org/viewvc/llvm-project?rev=208717&view=rev
Log:
Update for llvm API change.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
cfe/trunk/lib/CodeGen/CodeGenModule.h
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=208717&r1=208716&r2=208717&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Tue May 13 13:45:53 2014
@@ -725,14 +725,13 @@ void CodeGenModule::SetCommonAttributes(
}
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,
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=208717&r1=208716&r2=208717&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.h Tue May 13 13:45:53 2014
@@ -1020,7 +1020,7 @@ private:
/// NOTE: This should only be called for definitions.
void SetCommonAttributes(const Decl *D, llvm::GlobalValue *GV);
- void setNonAliasAttributes(const Decl *D, llvm::GlobalValue *GV);
+ void setNonAliasAttributes(const Decl *D, llvm::GlobalObject *GO);
/// Set attributes for a global definition.
void setFunctionDefinitionAttributes(const FunctionDecl *D,
More information about the cfe-commits
mailing list