[libc++] Remove _LIBCPP_HAS_NO_CXX20_COROUTINES

As far as I can tell, all the compilers we support have support for
C++20 coroutines now.

Differential Revision: https://reviews.llvm.org/D135274
This commit is contained in:
Louis Dionne 2022-10-05 11:35:53 -04:00
parent 1d29657acb
commit 3fe2db8cf9
5 changed files with 8 additions and 12 deletions

View File

@ -1080,10 +1080,6 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
# define _LIBCPP_ENABLE_CXX20_REMOVED_TYPE_TRAITS
# endif // _LIBCPP_ENABLE_CXX20_REMOVED_FEATURES
# if !defined(__cpp_impl_coroutine) || __cpp_impl_coroutine < 201902L
# define _LIBCPP_HAS_NO_CXX20_COROUTINES
# endif
# define _LIBCPP_PUSH_MACROS _Pragma("push_macro(\"min\")") _Pragma("push_macro(\"max\")")
# define _LIBCPP_POP_MACROS _Pragma("pop_macro(\"min\")") _Pragma("pop_macro(\"max\")")

View File

@ -20,7 +20,7 @@
# pragma GCC system_header
#endif
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#if _LIBCPP_STD_VER > 17
_LIBCPP_BEGIN_NAMESPACE_STD
@ -197,6 +197,6 @@ struct hash<coroutine_handle<_Tp>> {
_LIBCPP_END_NAMESPACE_STD
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#endif // __LIBCPP_STD_VER > 17
#endif // _LIBCPP___COROUTINE_COROUTINE_HANDLE_H

View File

@ -16,7 +16,7 @@
# pragma GCC system_header
#endif
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#if _LIBCPP_STD_VER > 17
_LIBCPP_BEGIN_NAMESPACE_STD
@ -48,6 +48,6 @@ struct coroutine_traits
_LIBCPP_END_NAMESPACE_STD
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#endif // __LIBCPP_STD_VER > 17
#endif // _LIBCPP___COROUTINE_COROUTINE_TRAITS_H

View File

@ -16,7 +16,7 @@
# pragma GCC system_header
#endif
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#if _LIBCPP_STD_VER > 17
_LIBCPP_BEGIN_NAMESPACE_STD
@ -107,6 +107,6 @@ noop_coroutine_handle noop_coroutine() noexcept { return noop_coroutine_handle()
_LIBCPP_END_NAMESPACE_STD
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#endif // __LIBCPP_STD_VER > 17
#endif // _LIBCPP___COROUTINE_NOOP_COROUTINE_HANDLE_H

View File

@ -16,7 +16,7 @@
# pragma GCC system_header
#endif
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#if _LIBCPP_STD_VER > 17
_LIBCPP_BEGIN_NAMESPACE_STD
@ -41,6 +41,6 @@ struct suspend_always {
_LIBCPP_END_NAMESPACE_STD
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
#endif // __LIBCPP_STD_VER > 17
#endif // __LIBCPP___COROUTINE_TRIVIAL_AWAITABLES_H