blob: 7962e28af703ab344c2fc2969aba6981103735b8 [file] [log] [blame]
Dan Albert12c0c8b2014-12-18 00:03:57 +00001//===----------------------- 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
12namespace __cxxabiv1 {
Dan Albert12c0c8b2014-12-18 00:03:57 +000013extern "C" {
14
15#ifdef HAVE___CXA_THREAD_ATEXIT_IMPL
16
Saleem Abdulrasool12315ed2015-12-04 02:14:58 +000017_LIBCXXABI_FUNC_VIS int __cxa_thread_atexit(void (*dtor)(void *), void *obj,
18 void *dso_symbol) throw() {
Dan Albert12c0c8b2014-12-18 00:03:57 +000019 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 Albert12c0c8b2014-12-18 00:03:57 +000026} // namespace __cxxabiv1