[C++11] Remove LLVM_HAS_CXX11_TYPETRAITS now that it is a constant due
authorChandler Carruth <chandlerc@gmail.com>
Sat, 1 Mar 2014 10:48:14 +0000 (10:48 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 1 Mar 2014 10:48:14 +0000 (10:48 +0000)
to the build being C++11.

There is clearly still plenty of simplification than can be done here by
using standard type traits instead of rolling our own in many places.

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

include/llvm/Support/Compiler.h
include/llvm/Support/ErrorOr.h

index f87d797ad23e26f71523974f416e95a375ea0599..9c7c827d8f618e3bbb10e4585149b78398a85495 100644 (file)
 #define LLVM_HAS_RVALUE_REFERENCE_THIS 0
 #endif
 
 #define LLVM_HAS_RVALUE_REFERENCE_THIS 0
 #endif
 
-/// \macro LLVM_HAS_CXX11_TYPETRAITS
-/// \brief Does the compiler have the C++11 type traits.
-///
-/// #include <type_traits>
-///
-/// * enable_if
-/// * {true,false}_type
-/// * is_constructible
-/// * etc...
-#define LLVM_HAS_CXX11_TYPETRAITS 1
-
 /// \macro LLVM_HAS_CXX11_STDLIB
 /// \brief Does the compiler have the C++11 standard library.
 ///
 /// \macro LLVM_HAS_CXX11_STDLIB
 /// \brief Does the compiler have the C++11 standard library.
 ///
index 6033d8a97e54517a2e231e5838ea46c3838bbf29..3054b213593d4674eaec66d0eaeb5df887abcf61 100644 (file)
@@ -21,9 +21,7 @@
 #include "llvm/Support/system_error.h"
 #include "llvm/Support/type_traits.h"
 #include <cassert>
 #include "llvm/Support/system_error.h"
 #include "llvm/Support/type_traits.h"
 #include <cassert>
-#if LLVM_HAS_CXX11_TYPETRAITS
 #include <type_traits>
 #include <type_traits>
-#endif
 
 namespace llvm {
 template<class T, class V>
 
 namespace llvm {
 template<class T, class V>