aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2015-11-11 23:08:18 +0000
committerManman Ren <manman.ren@gmail.com>2015-11-11 23:08:18 +0000
commitf93fff27f0d4f848e79fd695d126a0abf264d9c4 (patch)
tree5b256437d7d1ab46c5c05c23e275455b4844e491 /clang/lib/CodeGen/CodeGenModule.cpp
parent2b90a64e319be87760ca2b4323362b1b0e403182 (diff)
downloadllvm-f93fff27f0d4f848e79fd695d126a0abf264d9c4.zip
llvm-f93fff27f0d4f848e79fd695d126a0abf264d9c4.tar.gz
llvm-f93fff27f0d4f848e79fd695d126a0abf264d9c4.tar.bz2
[TLS on Darwin] treat all Darwin platforms in the same way.
rdar://problem/9001553 llvm-svn: 252820
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 5f4de74..b587783 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -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;