From: Chandler Carruth Date: Sat, 1 Mar 2014 10:57:19 +0000 (+0000) Subject: [C++11] Remove LLVM_HAS_CXX11_STDLIB now that it is just on. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=73bbab9d755b7b196a0ba6a41caf9391a1d0abdf;p=oota-llvm.git [C++11] Remove LLVM_HAS_CXX11_STDLIB now that it is just on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202587 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 9c7c827d8f6..2a3a1f46be9 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -68,12 +68,6 @@ #define LLVM_HAS_RVALUE_REFERENCE_THIS 0 #endif -/// \macro LLVM_HAS_CXX11_STDLIB -/// \brief Does the compiler have the C++11 standard library. -/// -/// Implies LLVM_HAS_RVALUE_REFERENCES, LLVM_HAS_CXX11_TYPETRAITS -#define LLVM_HAS_CXX11_STDLIB 1 - /// \macro LLVM_HAS_VARIADIC_TEMPLATES /// \brief Does this compiler support variadic templates. /// diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp index 7a0c31f484d..18ce507b889 100644 --- a/unittests/Support/ErrorOrTest.cpp +++ b/unittests/Support/ErrorOrTest.cpp @@ -36,11 +36,9 @@ TEST(ErrorOr, SimpleValue) { #endif } -#if LLVM_HAS_CXX11_STDLIB ErrorOr > t3() { return std::unique_ptr(new int(3)); } -#endif TEST(ErrorOr, Types) { int x; @@ -48,10 +46,8 @@ TEST(ErrorOr, Types) { *a = 42; EXPECT_EQ(42, x); -#if LLVM_HAS_CXX11_STDLIB // Move only types. EXPECT_EQ(3, **t3()); -#endif } struct B {}; @@ -61,9 +57,7 @@ TEST(ErrorOr, Covariant) { ErrorOr b(ErrorOr(0)); b = ErrorOr(0); -#if LLVM_HAS_CXX11_STDLIB ErrorOr > b1(ErrorOr >(0)); b1 = ErrorOr >(0); -#endif } } // end anon namespace