diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-14 21:36:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-14 21:36:34 +0000 |
commit | 819c3ddda8c2957299578ae16c6db325ad0b0c80 (patch) | |
tree | d3780863df88b06eadccb3ce091c2b8e3aa1acf2 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b81005dffc0107908571e6ae8ef8a05034ea687a (diff) | |
download | bcm5719-llvm-819c3ddda8c2957299578ae16c6db325ad0b0c80.tar.gz bcm5719-llvm-819c3ddda8c2957299578ae16c6db325ad0b0c80.zip |
Fix a thinko that John pointed out
llvm-svn: 84142
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ecf8eb0d27d..4763b7fc1ee 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<DLLImportAttr>()) GV->setLinkage(llvm::Function::DLLImportLinkage); |