summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-08-24 00:33:55 +0000
committerEric Christopher <echristo@apple.com>2011-08-24 00:33:55 +0000
commitb58b3e879d3b053dfb14342105b4b4bc27c069f3 (patch)
treed4f6f4b255a19a7de3b85368488b0885ad6562dd /clang/lib/CodeGen
parent0897a235176001f7703f54684b1ca60b3d4707a9 (diff)
downloadbcm5719-llvm-b58b3e879d3b053dfb14342105b4b4bc27c069f3.tar.gz
bcm5719-llvm-b58b3e879d3b053dfb14342105b4b4bc27c069f3.zip
Make constant aggregate constant initializers private linkage.
After talking with John making this the case for all of these is the right way to go. Fixes rdar://9804564 and PR10414 llvm-svn: 138418
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 6d1e9b03ab8..0f6ceedb25c 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -982,7 +982,7 @@ void CodeGenFunction::EmitAutoVarInit(const AutoVarEmission &emission) {
std::string Name = GetStaticDeclName(*this, D, ".");
llvm::GlobalVariable *GV =
new llvm::GlobalVariable(CGM.getModule(), constant->getType(), true,
- llvm::GlobalValue::InternalLinkage,
+ llvm::GlobalValue::PrivateLinkage,
constant, Name, 0, false, 0);
GV->setAlignment(alignment.getQuantity());
GV->setUnnamedAddr(true);
OpenPOWER on IntegriCloud