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 {
13 extern "C" {
14 
15 #ifdef HAVE___CXA_THREAD_ATEXIT_IMPL
16 
17 _LIBCXXABI_FUNC_VIS int __cxa_thread_atexit(void (*dtor)(void *), void *obj,
18                                             void *dso_symbol) throw() {
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"
26 } // namespace __cxxabiv1
27