diff options
author | Eric Christopher <echristo@apple.com> | 2010-06-24 02:02:00 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-06-24 02:02:00 +0000 |
commit | 1f84f8d970a673e487b40d341cd3e8d52ca9cc22 (patch) | |
tree | 89b3f3bba1a2fe8c5f6288dd48dbc43bc5ea0b38 /lib/Basic/Targets.cpp | |
parent | 564360be450b319aeafc26698be9811837bfb826 (diff) |
More clang support for darwin tls. Add a __has_feature macro and
target specific preprocessor define as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 3717b12b15..12758f8a92 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -150,7 +150,7 @@ protected: public: DarwinTargetInfo(const std::string& triple) : OSTargetInfo<Target>(triple) { - this->TLSSupported = false; + this->TLSSupported = llvm::Triple(triple).getDarwinMajorNumber() > 6; } virtual std::string isValidSectionSpecifier(llvm::StringRef SR) const { |