aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-03-14 21:08:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-03-14 21:08:19 +0000
commit0c1f098284c7052ae5f002f0f70bed50c3028347 (patch)
treea790329d5ae1c7752fc83828033875b79ef11341 /clang/lib/CodeGen/CodeGenModule.cpp
parentd3cc9fdd8e8c9c3d11dd78947d1fd7d110eea111 (diff)
downloadllvm-0c1f098284c7052ae5f002f0f70bed50c3028347.zip
llvm-0c1f098284c7052ae5f002f0f70bed50c3028347.tar.gz
llvm-0c1f098284c7052ae5f002f0f70bed50c3028347.tar.bz2
Switch from internal to linker_private linkage, it is sufficient to please the new linker.
llvm-svn: 127622
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 4753bc3..24b3c32 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1672,7 +1672,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
// FIXME: With OS X ld 123.2 (xcode 4) and LTO we would get a linker error
// when using private linkage. It is not clear if this is a bug in ld
// or a reasonable new restriction.
- Linkage = llvm::GlobalValue::InternalLinkage;
+ Linkage = llvm::GlobalValue::LinkerPrivateLinkage;
isConstant = !Features.WritableStrings;
}