From 8bd0dc5bfe23fdfba110eefd33ff658289a307ab Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 14 Sep 2020 17:16:46 -0400 Subject: [PATCH] [libc++abi] Do not declare __cxa_finalize and __cxa_atexit in These functions are not defined by libc++abi, so they don't belong in . Differential Revision: https://reviews.llvm.org/D75795 --- libcxxabi/include/cxxabi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcxxabi/include/cxxabi.h b/libcxxabi/include/cxxabi.h index 29e28a69a919..43ce6f5f740d 100644 --- a/libcxxabi/include/cxxabi.h +++ b/libcxxabi/include/cxxabi.h @@ -137,9 +137,9 @@ __cxa_vec_cctor(void *dest_array, void *src_array, size_t element_count, void (*destructor)(void *)); // 3.3.5.3 Runtime API -extern _LIBCXXABI_FUNC_VIS int __cxa_atexit(void (*f)(void *), void *p, - void *d); -extern _LIBCXXABI_FUNC_VIS int __cxa_finalize(void *); +// These functions are part of the C++ ABI, but they are not defined in libc++abi: +// int __cxa_atexit(void (*)(void *), void *, void *); +// void __cxa_finalize(void *); // 3.4 Demangler API extern _LIBCXXABI_FUNC_VIS char *__cxa_demangle(const char *mangled_name,