[llvm] r202586 - [C++11] Remove LLVM_HAS_CXX11_TYPETRAITS now that it is a constant due

Chandler Carruth chandlerc at gmail.com
Sat Mar 1 02:48:15 PST 2014


Author: chandlerc
Date: Sat Mar  1 04:48:14 2014
New Revision: 202586

URL: http://llvm.org/viewvc/llvm-project?rev=202586&view=rev
Log:
[C++11] Remove LLVM_HAS_CXX11_TYPETRAITS now that it is a constant due
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.

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h
    llvm/trunk/include/llvm/Support/ErrorOr.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=202586&r1=202585&r2=202586&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Sat Mar  1 04:48:14 2014
@@ -68,17 +68,6 @@
 #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.
 ///

Modified: llvm/trunk/include/llvm/Support/ErrorOr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorOr.h?rev=202586&r1=202585&r2=202586&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ErrorOr.h (original)
+++ llvm/trunk/include/llvm/Support/ErrorOr.h Sat Mar  1 04:48:14 2014
@@ -21,9 +21,7 @@
 #include "llvm/Support/system_error.h"
 #include "llvm/Support/type_traits.h"
 #include <cassert>
-#if LLVM_HAS_CXX11_TYPETRAITS
 #include <type_traits>
-#endif
 
 namespace llvm {
 template<class T, class V>





More information about the llvm-commits mailing list