From: Duncan Sands Date: Wed, 11 Mar 2009 08:40:02 +0000 (+0000) Subject: Correct for change of this name in LLVM. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3fedbeee8a014cd4f4e7cad8e7f6059eae12410;p=clang Correct for change of this name in LLVM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66652 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 16ba94791f..45766a2a6d 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -270,7 +270,7 @@ void CodeGenModule::SetGlobalValueAttributes(const Decl *D, D->getAttr()) { // "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() || D->getAttr()) - GV->setLinkage(llvm::GlobalValue::ExternalWeakAnyLinkage); + GV->setLinkage(llvm::GlobalValue::ExternalWeakLinkage); if (const AsmLabelAttr *ALA = D->getAttr()) { // Prefaced with special LLVM marker to indicate that the name