diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-02 00:20:22 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-02 00:20:22 +0000 |
commit | aa7333c860ac651c75da495217e0d6a9c10c0bb0 (patch) | |
tree | 2c91312c6e6e5f89c2a1ce1a1ea1ec5320806490 /lib/Basic/Targets.cpp | |
parent | 1b03c8719e2e45cf2769430335d7e71f18e6634a (diff) |
Update for llvm commit r134291.
Fixes rdar://9714064
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 06bd1c031c..382dcab971 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -189,7 +189,8 @@ protected: public: DarwinTargetInfo(const std::string& triple) : OSTargetInfo<Target>(triple) { - this->TLSSupported = llvm::Triple(triple).getDarwinMajorNumber() > 10; + llvm::Triple T = llvm::Triple(triple); + this->TLSSupported = T.isMacOSX() && !T.isMacOSXVersionLT(10,7); this->MCountName = "\01mcount"; } |