]> granicus.if.org Git - clang/commitdiff
Correct for change of this name in LLVM.
authorDuncan Sands <baldrick@free.fr>
Wed, 11 Mar 2009 08:40:02 +0000 (08:40 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 11 Mar 2009 08:40:02 +0000 (08:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66652 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 16ba94791fad30f5649157d76caf0b2cbef0a44a..45766a2a6d2dd71bedb16d8d0f96547280e7c33a 100644 (file)
@@ -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