[libcxx-commits] [PATCH] D115644: [libc++] Remove C++ version guards in the dylib.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 13 09:32:24 PST 2021
Mordante created this revision.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
The library is always build using C++20 so these guards are not needed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115644
Files:
libcxx/src/barrier.cpp
libcxx/src/format.cpp
Index: libcxx/src/format.cpp
===================================================================
--- libcxx/src/format.cpp
+++ 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
Index: libcxx/src/barrier.cpp
===================================================================
--- libcxx/src/barrier.cpp
+++ 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 @@
delete __barrier;
}
-#endif //!defined(_LIBCPP_HAS_NO_TREE_BARRIER) && (_LIBCPP_STD_VER >= 11)
+#endif //!defined(_LIBCPP_HAS_NO_TREE_BARRIER)
_LIBCPP_END_NAMESPACE_STD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115644.393931.patch
Type: text/x-patch
Size: 902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211213/7188a51c/attachment-0001.bin>
More information about the libcxx-commits
mailing list