summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-03-11 08:40:02 +0000
committerDuncan Sands <baldrick@free.fr>2009-03-11 08:40:02 +0000
commitbdf086f7c04bb24bd31aa37d0ede84684de7a506 (patch)
treed8aa787c8c83fa900cd655a24ccd15a1e69eeacf /clang/lib/CodeGen/CodeGenModule.cpp
parente2881053c9d977cbe1176c2fdaf2a5049a0e7dad (diff)
downloadbcm5719-llvm-bdf086f7c04bb24bd31aa37d0ede84684de7a506.tar.gz
bcm5719-llvm-bdf086f7c04bb24bd31aa37d0ede84684de7a506.zip
Correct for change of this name in LLVM.
llvm-svn: 66652
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 16ba94791fa..45766a2a6d2 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -270,7 +270,7 @@ void CodeGenModule::SetGlobalValueAttributes(const Decl *D,
D->getAttr<WeakImportAttr>()) {
// "extern_weak" is overloaded in LLVM; we probably should have
// separate linkage types for this.
- GV->setLinkage(llvm::Function::ExternalWeakAnyLinkage);
+ GV->setLinkage(llvm::Function::ExternalWeakLinkage);
}
} else {
if (IsInternal) {
@@ -611,7 +611,7 @@ void CodeGenModule::EmitGlobalDefinition(const ValueDecl *D) {
setGlobalVisibility(GV, VisibilityAttr::HiddenVisibility);
if (D->getAttr<WeakAttr>() || D->getAttr<WeakImportAttr>())
- GV->setLinkage(llvm::GlobalValue::ExternalWeakAnyLinkage);
+ GV->setLinkage(llvm::GlobalValue::ExternalWeakLinkage);
if (const AsmLabelAttr *ALA = D->getAttr<AsmLabelAttr>()) {
// Prefaced with special LLVM marker to indicate that the name
OpenPOWER on IntegriCloud