blob: e5d6b9e73a267a80835f96f8d08ac42d961e5114 [file] [log] [blame]
Louis Dionne9bd93882021-11-17 16:25:01 -05001//===----------------------------------------------------------------------===//
Nick Kledzikd1a61bb2010-05-14 20:19:37 +00002//
Chandler Carruthd2012102019-01-19 10:56:40 +00003// 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 Kledzikd1a61bb2010-05-14 20:19:37 +00006//
7//===----------------------------------------------------------------------===//
Nick Kledzikd1a61bb2010-05-14 20:19:37 +00008
Arthur O'Dwyercf9bf392022-02-11 13:00:39 -05009#include <exception>
10#include <new>
11#include <typeinfo>
Nick Kledzikd1a61bb2010-05-14 20:19:37 +000012
Louis Dionne93a8d112019-04-23 14:05:04 +000013#if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI)
Nick Kledzikd1a61bb2010-05-14 20:19:37 +000014 #include <cxxabi.h>
15 using namespace __cxxabiv1;
David Chisnall1d581062011-09-21 08:39:44 +000016 #define HAVE_DEPENDENT_EH_ABI 1
Eric Fiselierec3a1672017-02-10 08:57:35 +000017#endif
Eric Fiselier88d11712017-02-10 07:43:08 +000018
Eric Fiselier88d11712017-02-10 07:43:08 +000019#if defined(_LIBCPP_ABI_MICROSOFT)
Eric Fiselierec3a1672017-02-10 08:57:35 +000020#include "support/runtime/exception_msvc.ipp"
Eric Fiselier94ef6cc2017-05-08 01:17:50 +000021#include "support/runtime/exception_pointer_msvc.ipp"
Eric Fiselierec3a1672017-02-10 08:57:35 +000022#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 Fiselier88d11712017-02-10 07:43:08 +000028#elif defined(__GLIBCXX__)
Eric Fiselierec3a1672017-02-10 08:57:35 +000029#include "support/runtime/exception_glibcxx.ipp"
30#include "support/runtime/exception_pointer_glibcxx.ipp"
Eric Fiselier88d11712017-02-10 07:43:08 +000031#else
Weiming Zhaob613db72017-09-19 23:18:03 +000032#include "include/atomic_support.h"
Eric Fiselierec3a1672017-02-10 08:57:35 +000033#include "support/runtime/exception_fallback.ipp"
34#include "support/runtime/exception_pointer_unimplemented.ipp"
Eric Fiselier88d11712017-02-10 07:43:08 +000035#endif