1eb8650a7SLouis Dionne //===----------------------------------------------------------------------===//
2111e0cbeSNick Kledzik //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6111e0cbeSNick Kledzik //
7111e0cbeSNick Kledzik //===----------------------------------------------------------------------===//
8111e0cbeSNick Kledzik 
9*bbb0f2c7SArthur O'Dwyer #include <exception>
10*bbb0f2c7SArthur O'Dwyer #include <new>
11*bbb0f2c7SArthur O'Dwyer #include <typeinfo>
12111e0cbeSNick Kledzik 
13d524fe5bSLouis Dionne #if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI)
148dcdeaebSEric Fiselier   #include <cxxabi.h>
158dcdeaebSEric Fiselier   using namespace __cxxabiv1;
168dcdeaebSEric Fiselier   #define HAVE_DEPENDENT_EH_ABI 1
178dcdeaebSEric Fiselier #endif
188dcdeaebSEric Fiselier 
198dcdeaebSEric Fiselier #if defined(_LIBCPP_ABI_MICROSOFT)
20d22c9dc4SEric Fiselier #include "support/runtime/exception_msvc.ipp"
213e254a6eSEric Fiselier #include "support/runtime/exception_pointer_msvc.ipp"
22d22c9dc4SEric Fiselier #elif defined(_LIBCPPABI_VERSION)
23d22c9dc4SEric Fiselier #include "support/runtime/exception_libcxxabi.ipp"
24d22c9dc4SEric Fiselier #include "support/runtime/exception_pointer_cxxabi.ipp"
25d22c9dc4SEric Fiselier #elif defined(LIBCXXRT)
26d22c9dc4SEric Fiselier #include "support/runtime/exception_libcxxrt.ipp"
27d22c9dc4SEric Fiselier #include "support/runtime/exception_pointer_cxxabi.ipp"
288dcdeaebSEric Fiselier #elif defined(__GLIBCXX__)
29d22c9dc4SEric Fiselier #include "support/runtime/exception_glibcxx.ipp"
30d22c9dc4SEric Fiselier #include "support/runtime/exception_pointer_glibcxx.ipp"
318dcdeaebSEric Fiselier #else
32fbfaec70SWeiming Zhao #include "include/atomic_support.h"
33d22c9dc4SEric Fiselier #include "support/runtime/exception_fallback.ipp"
34d22c9dc4SEric Fiselier #include "support/runtime/exception_pointer_unimplemented.ipp"
358dcdeaebSEric Fiselier #endif
36