From: Chandler Carruth Date: Sat, 1 Mar 2014 10:48:14 +0000 (+0000) Subject: [C++11] Remove LLVM_HAS_CXX11_TYPETRAITS now that it is a constant due X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=f07a95af8c2f54679f4a00a67caa0f94c2e79088 [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202586 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index f87d797ad23..9c7c827d8f6 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -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 -/// -/// * 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. /// diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index 6033d8a97e5..3054b213593 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -21,9 +21,7 @@ #include "llvm/Support/system_error.h" #include "llvm/Support/type_traits.h" #include -#if LLVM_HAS_CXX11_TYPETRAITS #include -#endif namespace llvm { template