From 819c3ddda8c2957299578ae16c6db325ad0b0c80 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 14 Oct 2009 21:36:34 +0000 Subject: Fix a thinko that John pointed out llvm-svn: 84142 --- clang/lib/CodeGen/CodeGenModule.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ecf8eb0..4763b7f 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1058,9 +1058,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) { // 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()) GV->setLinkage(llvm::Function::DLLImportLinkage); -- cgit v1.1