Switch from internal to linker_private linkage, it is sufficient to please the new linker.

llvm-svn: 127622
This commit is contained in:
Rafael Espindola
2011-03-14 21:08:19 +00:00
parent d3cc9fdd8e
commit 0c1f098284
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}