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

Douglas Gregor dgregor at apple.com
Wed Oct 14 14:36:34 PDT 2009


Author: dgregor
Date: Wed Oct 14 16:36:34 2009
New Revision: 84142

URL: http://llvm.org/viewvc/llvm-project?rev=84142&view=rev
Log:
Fix a thinko that John pointed out

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=84142&r1=84141&r2=84142&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Wed Oct 14 16:36:34 2009
@@ -1058,9 +1058,7 @@
 
   // Set the llvm linkage type as appropriate.
   GVALinkage Linkage = GetLinkageForVariable(getContext(), D);
-  if (D->isInAnonymousNamespace())
-    GV->setLinkage(llvm::Function::InternalLinkage);
-  else if (Linkage == GVA_Internal)
+  if (Linkage == GVA_Internal)
     GV->setLinkage(llvm::Function::InternalLinkage);
   else if (D->hasAttr<DLLImportAttr>())
     GV->setLinkage(llvm::Function::DLLImportLinkage);





More information about the cfe-commits mailing list