[libcxx-commits] [libcxx] 0b9b1c8 - [libc++] Remove C++ version guards in the dylib.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 14 08:37:57 PST 2021
Author: Mark de Wever
Date: 2021-12-14T17:37:52+01:00
New Revision: 0b9b1c8c49fd317ce70d028b041572e1f24f5995
URL: https://github.com/llvm/llvm-project/commit/0b9b1c8c49fd317ce70d028b041572e1f24f5995
DIFF: https://github.com/llvm/llvm-project/commit/0b9b1c8c49fd317ce70d028b041572e1f24f5995.diff
LOG: [libc++] Remove C++ version guards in the dylib.
The library is always build using C++20 so these guards are not needed.
Reviewed By: #libc, Quuxplusone, ldionne
Differential Revision: https://reviews.llvm.org/D115644
Added:
Modified:
libcxx/src/barrier.cpp
libcxx/src/format.cpp
Removed:
################################################################################
diff --git a/libcxx/src/barrier.cpp b/libcxx/src/barrier.cpp
index 0f9dad987fad3..bd566646b84ca 100644
--- a/libcxx/src/barrier.cpp
+++ b/libcxx/src/barrier.cpp
@@ -15,7 +15,7 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-#if !defined(_LIBCPP_HAS_NO_TREE_BARRIER) && (_LIBCPP_STD_VER > 11)
+#if !defined(_LIBCPP_HAS_NO_TREE_BARRIER)
class __barrier_algorithm_base {
public:
@@ -90,7 +90,7 @@ void __destroy_barrier_algorithm_base(__barrier_algorithm_base* __barrier)
delete __barrier;
}
-#endif //!defined(_LIBCPP_HAS_NO_TREE_BARRIER) && (_LIBCPP_STD_VER >= 11)
+#endif //!defined(_LIBCPP_HAS_NO_TREE_BARRIER)
_LIBCPP_END_NAMESPACE_STD
diff --git a/libcxx/src/format.cpp b/libcxx/src/format.cpp
index 7ae2af59b7fa1..2ebec28247e64 100644
--- a/libcxx/src/format.cpp
+++ b/libcxx/src/format.cpp
@@ -10,10 +10,6 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-#if _LIBCPP_STD_VER > 17
-
format_error::~format_error() noexcept = default;
-#endif //_LIBCPP_STD_VER > 17
-
_LIBCPP_END_NAMESPACE_STD
More information about the libcxx-commits
mailing list