summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-19 01:35:58 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-19 01:35:58 +0000
commit6ded58e27962754957834752173aa6ac60f5e1e7 (patch)
treed858ddab47928d67b0515645dc30fc73b53b8447
parent046492b932bc2033517c08a279da2a0c008005e6 (diff)
downloadbcm5719-llvm-6ded58e27962754957834752173aa6ac60f5e1e7.tar.gz
bcm5719-llvm-6ded58e27962754957834752173aa6ac60f5e1e7.zip
Cleanup usages of _LIBCPP_HAS_NO_<c++11-feature> in <exception>
llvm-svn: 300649
-rw-r--r--libcxx/include/exception16
1 files changed, 8 insertions, 8 deletions
diff --git a/libcxx/include/exception b/libcxx/include/exception
index 181d604d6c1..f12ae42093a 100644
--- a/libcxx/include/exception
+++ b/libcxx/include/exception
@@ -209,11 +209,11 @@ struct __throw_with_nested;
template <class _Tp, class _Up>
struct __throw_with_nested<_Tp, _Up, true> {
_LIBCPP_NORETURN static inline _LIBCPP_ALWAYS_INLINE void
- #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#ifndef _LIBCPP_CXX03_LANG
__do_throw(_Tp&& __t)
- #else
+#else
__do_throw (_Tp& __t)
- #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#endif // _LIBCPP_CXX03_LANG
{
throw __nested<_Up>(_VSTD::forward<_Tp>(__t));
}
@@ -222,11 +222,11 @@ struct __throw_with_nested<_Tp, _Up, true> {
template <class _Tp, class _Up>
struct __throw_with_nested<_Tp, _Up, false> {
_LIBCPP_NORETURN static inline _LIBCPP_ALWAYS_INLINE void
- #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#ifndef _LIBCPP_CXX03_LANG
__do_throw(_Tp&& __t)
- #else
+#else
__do_throw (_Tp& __t)
- #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#endif // _LIBCPP_CXX03_LANG
{
throw _VSTD::forward<_Tp>(__t);
}
@@ -236,11 +236,11 @@ struct __throw_with_nested<_Tp, _Up, false> {
template <class _Tp>
_LIBCPP_NORETURN
void
-#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#ifndef _LIBCPP_CXX03_LANG
throw_with_nested(_Tp&& __t)
#else
throw_with_nested (_Tp& __t)
-#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#endif // _LIBCPP_CXX03_LANG
{
#ifndef _LIBCPP_NO_EXCEPTIONS
typedef typename decay<_Tp>::type _Up;
OpenPOWER on IntegriCloud