[llvm] r202587 - [C++11] Remove LLVM_HAS_CXX11_STDLIB now that it is just on.
Chandler Carruth
chandlerc at gmail.com
Sat Mar 1 02:57:20 PST 2014
Author: chandlerc
Date: Sat Mar 1 04:57:19 2014
New Revision: 202587
URL: http://llvm.org/viewvc/llvm-project?rev=202587&view=rev
Log:
[C++11] Remove LLVM_HAS_CXX11_STDLIB now that it is just on.
Modified:
llvm/trunk/include/llvm/Support/Compiler.h
llvm/trunk/unittests/Support/ErrorOrTest.cpp
Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=202587&r1=202586&r2=202587&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Sat Mar 1 04:57:19 2014
@@ -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.
///
Modified: llvm/trunk/unittests/Support/ErrorOrTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ErrorOrTest.cpp?rev=202587&r1=202586&r2=202587&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/ErrorOrTest.cpp (original)
+++ llvm/trunk/unittests/Support/ErrorOrTest.cpp Sat Mar 1 04:57:19 2014
@@ -36,11 +36,9 @@ TEST(ErrorOr, SimpleValue) {
#endif
}
-#if LLVM_HAS_CXX11_STDLIB
ErrorOr<std::unique_ptr<int> > t3() {
return std::unique_ptr<int>(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*> b(ErrorOr<D*>(0));
b = ErrorOr<D*>(0);
-#if LLVM_HAS_CXX11_STDLIB
ErrorOr<std::unique_ptr<B> > b1(ErrorOr<std::unique_ptr<D> >(0));
b1 = ErrorOr<std::unique_ptr<D> >(0);
-#endif
}
} // end anon namespace
More information about the llvm-commits
mailing list