]> granicus.if.org Git - llvm/commitdiff
[NFC] Remove extra __has_feature
authorJF Bastien <jfbastien@apple.com>
Thu, 1 Aug 2019 22:19:53 +0000 (22:19 +0000)
committerJF Bastien <jfbastien@apple.com>
Thu, 1 Aug 2019 22:19:53 +0000 (22:19 +0000)
It's already in Compiler.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367625 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/type_traits.h

index c8c6a76a90f1d4c221469e57681dba284988138a..b9d29f381873ed97139581dcea0fa56981ff1cb4 100644 (file)
 #include <type_traits>
 #include <utility>
 
-#ifndef __has_feature
-#define LLVM_DEFINED_HAS_FEATURE
-#define __has_feature(x) 0
-#endif
-
 namespace llvm {
 
 
@@ -203,8 +198,4 @@ class is_trivially_copyable<T*> : public std::true_type {
 #define LLVM_IS_FINAL(Ty) __is_final(Ty)
 #endif
 
-#ifdef LLVM_DEFINED_HAS_FEATURE
-#undef __has_feature
-#endif
-
 #endif // LLVM_SUPPORT_TYPE_TRAITS_H