From 7babd25ae44fd96805edaa4fe99bc638740dd164 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Mon, 21 Jan 2013 05:39:07 +0000 Subject: [Support] Make test C++03. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173004 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/ErrorOrTest.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'unittests/Support') diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp index 8ce7160ba3..3181b4fc4b 100644 --- a/unittests/Support/ErrorOrTest.cpp +++ b/unittests/Support/ErrorOrTest.cpp @@ -56,15 +56,14 @@ struct InvalidArgError { std::string ArgName; }; -#if LLVM_HAS_CXX11_STDLIB namespace llvm { template<> -struct ErrorOrUserDataTraits : std::true_type { +struct ErrorOrUserDataTraits : true_type { static error_code error() { return make_error_code(errc::invalid_argument); } }; -} // end namespace lld +} // end namespace llvm ErrorOr t4() { return InvalidArgError("adena"); @@ -77,4 +76,3 @@ TEST(ErrorOr, UserErrorData) { EXPECT_EQ("adena", t4().getError().ArgName); } } // end anon namespace -#endif -- cgit v1.2.3-18-g5258