summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-13 18:45:53 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-13 18:45:53 +0000
commit711c94cd48f193d68c0dcd807e317ddeea4befbe (patch)
tree0f6b2317b1716b2cadc1417d3e213bc9317aa01f /lib/CodeGen/CodeGenModule.cpp
parenteba9195e0075e8b03bce8a31d2d09d5ec50f4e71 (diff)
downloadclang-711c94cd48f193d68c0dcd807e317ddeea4befbe.tar.gz
clang-711c94cd48f193d68c0dcd807e317ddeea4befbe.tar.bz2
clang-711c94cd48f193d68c0dcd807e317ddeea4befbe.tar.xz
Update for llvm API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index d474c1b464..2f3f0f0269 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -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,