[TLS on Darwin] treat all Darwin platforms in the same way.
rdar://problem/9001553 llvm-svn: 252820
This commit is contained in:
@@ -2323,7 +2323,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
|
||||
// variable. This is to preserve the ability to change the implementation
|
||||
// behind the scenes.
|
||||
if (!D->isStaticLocal() && D->getTLSKind() == VarDecl::TLS_Dynamic &&
|
||||
Context.getTargetInfo().getTriple().isMacOSX() &&
|
||||
Context.getTargetInfo().getTriple().isOSDarwin() &&
|
||||
!llvm::GlobalVariable::isLinkOnceLinkage(Linkage) &&
|
||||
!llvm::GlobalVariable::isWeakLinkage(Linkage))
|
||||
Linkage = llvm::GlobalValue::InternalLinkage;
|
||||
|
||||
Reference in New Issue
Block a user