[llvm] r367625 - [NFC] Remove extra __has_feature
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 15:19:53 PDT 2019
Author: jfb
Date: Thu Aug 1 15:19:53 2019
New Revision: 367625
URL: http://llvm.org/viewvc/llvm-project?rev=367625&view=rev
Log:
[NFC] Remove extra __has_feature
It's already in Compiler.h
Modified:
llvm/trunk/include/llvm/Support/type_traits.h
Modified: llvm/trunk/include/llvm/Support/type_traits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/type_traits.h?rev=367625&r1=367624&r2=367625&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/type_traits.h (original)
+++ llvm/trunk/include/llvm/Support/type_traits.h Thu Aug 1 15:19:53 2019
@@ -17,11 +17,6 @@
#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
#define LLVM_IS_FINAL(Ty) __is_final(Ty)
#endif
-#ifdef LLVM_DEFINED_HAS_FEATURE
-#undef __has_feature
-#endif
-
#endif // LLVM_SUPPORT_TYPE_TRAITS_H
More information about the llvm-commits
mailing list