Skip to content

Commit 484cfaa

Browse files
committed
Fix macos: Cleanup includes
1 parent cdf5409 commit 484cfaa

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

libcxx/include/__exception/exception_ptr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <__memory/construct_at.h>
1717
#include <__type_traits/decay.h>
1818
#include <__type_traits/is_pointer.h>
19+
#include <__verbose_abort> // used by exception_ptr_{unimplemented,cxxabi}.ipp
1920
#include <cstdlib>
2021
#include <typeinfo>
2122

libcxx/include/__exception/exception_ptr_cxxabi.ipp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#include <__exception/terminate.h>
11-
1210
namespace __cxxabiv1 {
1311

1412
extern "C" {
@@ -44,7 +42,7 @@ _LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr current_exception() _NOEXCEPT
4442
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE void rethrow_exception(exception_ptr __ptr) {
4543
__cxxabiv1::__cxa_rethrow_primary_exception(__ptr.__ptr_);
4644
// if __ptr.__ptr_ is NULL, above returns so we terminate.
47-
terminate();
45+
_LIBCPP_VERBOSE_ABORT("tried to rethrow an empty exception_ptr\n");
4846
}
4947

5048
} // namespace std

libcxx/include/__exception/exception_ptr_msvc.ipp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#include <stdlib.h>
11-
1210
_LIBCPP_CRT_FUNC void __cdecl __ExceptionPtrCreate(void*);
1311
_LIBCPP_CRT_FUNC void __cdecl __ExceptionPtrDestroy(void*);
1412
_LIBCPP_CRT_FUNC void __cdecl __ExceptionPtrCopy(void*, const void*);

libcxx/include/__exception/exception_ptr_unimplemented.ipp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ namespace std {
1717

1818
_LIBCPP_HIDE_FROM_ABI _LIBCPP_ALWAYS_INLINE inline void exception_ptr::__increment_refcount(void* __ptr) _NOEXCEPT {
1919
if (__ptr)
20-
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
20+
_LIBCPP_VERBOSE_ABORT("exception_ptr not yet implemented\n");
2121
}
2222

2323
_LIBCPP_HIDE_FROM_ABI _LIBCPP_ALWAYS_INLINE inline void exception_ptr::__decrement_refcount(void* __ptr) _NOEXCEPT {
2424
if (__ptr)
25-
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
25+
_LIBCPP_VERBOSE_ABORT("exception_ptr not yet implemented\n");
2626
}
2727

2828
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr current_exception() _NOEXCEPT {
29-
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
29+
_LIBCPP_VERBOSE_ABORT("exception_ptr not yet implemented\n");
3030
}
3131

3232
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE [[noreturn]] void rethrow_exception(exception_ptr p) {
33-
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
33+
_LIBCPP_VERBOSE_ABORT("exception_ptr not yet implemented\n");
3434
}
3535

3636
} // namespace std

0 commit comments

Comments
 (0)