diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-14 21:08:19 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-14 21:08:19 +0000 |
commit | 0c1f098284c7052ae5f002f0f70bed50c3028347 (patch) | |
tree | a790329d5ae1c7752fc83828033875b79ef11341 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d3cc9fdd8e8c9c3d11dd78947d1fd7d110eea111 (diff) | |
download | llvm-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.cpp | 2 |
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; } |