Louis Dionne | 9bd9388 | 2021-11-17 16:25:01 -0500 | [diff] [blame^] | 1 | //===----------------------------------------------------------------------===// |
Nick Kledzik | d1a61bb | 2010-05-14 20:19:37 +0000 | [diff] [blame] | 2 | // |
Chandler Carruth | d201210 | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Nick Kledzik | d1a61bb | 2010-05-14 20:19:37 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
Nick Kledzik | d1a61bb | 2010-05-14 20:19:37 +0000 | [diff] [blame] | 8 | |
| 9 | #include "exception" |
Peter Collingbourne | 4d7da9a | 2013-10-06 22:13:21 +0000 | [diff] [blame] | 10 | #include "new" |
Eric Fiselier | ec3a167 | 2017-02-10 08:57:35 +0000 | [diff] [blame] | 11 | #include "typeinfo" |
Nick Kledzik | d1a61bb | 2010-05-14 20:19:37 +0000 | [diff] [blame] | 12 | |
Louis Dionne | 93a8d11 | 2019-04-23 14:05:04 +0000 | [diff] [blame] | 13 | #if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI) |
Nick Kledzik | d1a61bb | 2010-05-14 20:19:37 +0000 | [diff] [blame] | 14 | #include <cxxabi.h> |
| 15 | using namespace __cxxabiv1; |
David Chisnall | 1d58106 | 2011-09-21 08:39:44 +0000 | [diff] [blame] | 16 | #define HAVE_DEPENDENT_EH_ABI 1 |
Eric Fiselier | ec3a167 | 2017-02-10 08:57:35 +0000 | [diff] [blame] | 17 | #endif |
Eric Fiselier | 88d1171 | 2017-02-10 07:43:08 +0000 | [diff] [blame] | 18 | |
Eric Fiselier | 88d1171 | 2017-02-10 07:43:08 +0000 | [diff] [blame] | 19 | #if defined(_LIBCPP_ABI_MICROSOFT) |
Eric Fiselier | ec3a167 | 2017-02-10 08:57:35 +0000 | [diff] [blame] | 20 | #include "support/runtime/exception_msvc.ipp" |
Eric Fiselier | 94ef6cc | 2017-05-08 01:17:50 +0000 | [diff] [blame] | 21 | #include "support/runtime/exception_pointer_msvc.ipp" |
Eric Fiselier | ec3a167 | 2017-02-10 08:57:35 +0000 | [diff] [blame] | 22 | #elif defined(_LIBCPPABI_VERSION) |
| 23 | #include "support/runtime/exception_libcxxabi.ipp" |
| 24 | #include "support/runtime/exception_pointer_cxxabi.ipp" |
| 25 | #elif defined(LIBCXXRT) |
| 26 | #include "support/runtime/exception_libcxxrt.ipp" |
| 27 | #include "support/runtime/exception_pointer_cxxabi.ipp" |
Eric Fiselier | 88d1171 | 2017-02-10 07:43:08 +0000 | [diff] [blame] | 28 | #elif defined(__GLIBCXX__) |
Eric Fiselier | ec3a167 | 2017-02-10 08:57:35 +0000 | [diff] [blame] | 29 | #include "support/runtime/exception_glibcxx.ipp" |
| 30 | #include "support/runtime/exception_pointer_glibcxx.ipp" |
Eric Fiselier | 88d1171 | 2017-02-10 07:43:08 +0000 | [diff] [blame] | 31 | #else |
Weiming Zhao | b613db7 | 2017-09-19 23:18:03 +0000 | [diff] [blame] | 32 | #include "include/atomic_support.h" |
Eric Fiselier | ec3a167 | 2017-02-10 08:57:35 +0000 | [diff] [blame] | 33 | #include "support/runtime/exception_fallback.ipp" |
| 34 | #include "support/runtime/exception_pointer_unimplemented.ipp" |
Eric Fiselier | 88d1171 | 2017-02-10 07:43:08 +0000 | [diff] [blame] | 35 | #endif |