[cfe-commits] r66652 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Duncan Sands baldrick at free.fr
Wed Mar 11 01:40:11 PDT 2009


Author: baldrick
Date: Wed Mar 11 03:40:02 2009
New Revision: 66652

URL: http://llvm.org/viewvc/llvm-project?rev=66652&view=rev
Log:
Correct for change of this name in LLVM.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=66652&r1=66651&r2=66652&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Wed Mar 11 03:40:02 2009
@@ -270,7 +270,7 @@
                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 @@
       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





More information about the cfe-commits mailing list