Dan Albert | 12c0c8b | 2014-12-18 00:03:57 +0000 | [diff] [blame] | 1 | //===----------------------- cxa_thread_atexit.cpp ------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "cxxabi.h" |
| 11 | |
| 12 | namespace __cxxabiv1 { |
Dan Albert | 12c0c8b | 2014-12-18 00:03:57 +0000 | [diff] [blame] | 13 | extern "C" { |
| 14 | |
| 15 | #ifdef HAVE___CXA_THREAD_ATEXIT_IMPL |
| 16 | |
Saleem Abdulrasool | 12315ed | 2015-12-04 02:14:58 +0000 | [diff] [blame^] | 17 | _LIBCXXABI_FUNC_VIS int __cxa_thread_atexit(void (*dtor)(void *), void *obj, |
| 18 | void *dso_symbol) throw() { |
Dan Albert | 12c0c8b | 2014-12-18 00:03:57 +0000 | [diff] [blame] | 19 | extern int __cxa_thread_atexit_impl(void (*)(void *), void *, void *); |
| 20 | return __cxa_thread_atexit_impl(dtor, obj, dso_symbol); |
| 21 | } |
| 22 | |
| 23 | #endif // HAVE__CXA_THREAD_ATEXIT_IMPL |
| 24 | |
| 25 | } // extern "C" |
Dan Albert | 12c0c8b | 2014-12-18 00:03:57 +0000 | [diff] [blame] | 26 | } // namespace __cxxabiv1 |