summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-01 10:57:19 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-01 10:57:19 +0000
commitf4cde83d3a284a53869baa12d9eabe0342678e93 (patch)
tree502213596a569e8d87c55027d45822a5ee0bd468 /llvm
parent16d3ab4f0e3c0ce7e015d5c039b8db0f0572d238 (diff)
downloadbcm5719-llvm-f4cde83d3a284a53869baa12d9eabe0342678e93.tar.gz
bcm5719-llvm-f4cde83d3a284a53869baa12d9eabe0342678e93.zip
[C++11] Remove LLVM_HAS_CXX11_STDLIB now that it is just on.
llvm-svn: 202587
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/Compiler.h6
-rw-r--r--llvm/unittests/Support/ErrorOrTest.cpp6
2 files changed, 0 insertions, 12 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 9c7c827d8f6..2a3a1f46be9 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/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/llvm/unittests/Support/ErrorOrTest.cpp b/llvm/unittests/Support/ErrorOrTest.cpp
index 7a0c31f484d..18ce507b889 100644
--- a/llvm/unittests/Support/ErrorOrTest.cpp
+++ b/llvm/unittests/Support/ErrorOrTest.cpp
@@ -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
OpenPOWER on IntegriCloud