17a984708SDavid Chisnall //===------------------------ exception.cpp -------------------------------===// 27a984708SDavid Chisnall // 37a984708SDavid Chisnall // The LLVM Compiler Infrastructure 47a984708SDavid Chisnall // 57a984708SDavid Chisnall // This file is dual licensed under the MIT and the University of Illinois Open 67a984708SDavid Chisnall // Source Licenses. See LICENSE.TXT for details. 77a984708SDavid Chisnall // 87a984708SDavid Chisnall //===----------------------------------------------------------------------===// 97a984708SDavid Chisnall 107a984708SDavid Chisnall #include "exception" 114f7ab58eSDimitry Andric #include "new" 12540d2a8bSDimitry Andric #include "typeinfo" 137a984708SDavid Chisnall 14540d2a8bSDimitry Andric #if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI) || \ 15540d2a8bSDimitry Andric (defined(__APPLE__) && !defined(_LIBCPP_BUILDING_HAS_NO_ABI_LIBRARY)) 167a984708SDavid Chisnall #include <cxxabi.h> 177a984708SDavid Chisnall using namespace __cxxabiv1; 187a984708SDavid Chisnall #define HAVE_DEPENDENT_EH_ABI 1 19936e9439SDimitry Andric #endif 207a984708SDavid Chisnall 2180779b37SDimitry Andric #if defined(_LIBCPP_ABI_MICROSOFT) 22540d2a8bSDimitry Andric #include "support/runtime/exception_msvc.ipp" 230f5676f4SDimitry Andric #include "support/runtime/exception_pointer_msvc.ipp" 24540d2a8bSDimitry Andric #elif defined(_LIBCPPABI_VERSION) 25540d2a8bSDimitry Andric #include "support/runtime/exception_libcxxabi.ipp" 26540d2a8bSDimitry Andric #include "support/runtime/exception_pointer_cxxabi.ipp" 27540d2a8bSDimitry Andric #elif defined(LIBCXXRT) 28540d2a8bSDimitry Andric #include "support/runtime/exception_libcxxrt.ipp" 29540d2a8bSDimitry Andric #include "support/runtime/exception_pointer_cxxabi.ipp" 304f7ab58eSDimitry Andric #elif defined(__GLIBCXX__) 31540d2a8bSDimitry Andric #include "support/runtime/exception_glibcxx.ipp" 32540d2a8bSDimitry Andric #include "support/runtime/exception_pointer_glibcxx.ipp" 334f7ab58eSDimitry Andric #else 34*b2c7081bSDimitry Andric #include "include/atomic_support.h" 35540d2a8bSDimitry Andric #include "support/runtime/exception_fallback.ipp" 36540d2a8bSDimitry Andric #include "support/runtime/exception_pointer_unimplemented.ipp" 374f7ab58eSDimitry Andric #endif 38