1227825Stheraven//===------------------------ exception.cpp -------------------------------===// 2227825Stheraven// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6227825Stheraven// 7227825Stheraven//===----------------------------------------------------------------------===// 8227825Stheraven 9227825Stheraven#include "exception" 10261272Sdim#include "new" 11321369Sdim#include "typeinfo" 12227825Stheraven 13353358Sdim#if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI) 14227825Stheraven #include <cxxabi.h> 15227825Stheraven using namespace __cxxabiv1; 16227825Stheraven #define HAVE_DEPENDENT_EH_ABI 1 17314564Sdim#endif 18227825Stheraven 19314564Sdim#if defined(_LIBCPP_ABI_MICROSOFT) 20321369Sdim#include "support/runtime/exception_msvc.ipp" 21321369Sdim#include "support/runtime/exception_pointer_msvc.ipp" 22321369Sdim#elif defined(_LIBCPPABI_VERSION) 23321369Sdim#include "support/runtime/exception_libcxxabi.ipp" 24321369Sdim#include "support/runtime/exception_pointer_cxxabi.ipp" 25321369Sdim#elif defined(LIBCXXRT) 26321369Sdim#include "support/runtime/exception_libcxxrt.ipp" 27321369Sdim#include "support/runtime/exception_pointer_cxxabi.ipp" 28261272Sdim#elif defined(__GLIBCXX__) 29321369Sdim#include "support/runtime/exception_glibcxx.ipp" 30321369Sdim#include "support/runtime/exception_pointer_glibcxx.ipp" 31227825Stheraven#else 32327952Sdim#include "include/atomic_support.h" 33321369Sdim#include "support/runtime/exception_fallback.ipp" 34321369Sdim#include "support/runtime/exception_pointer_unimplemented.ipp" 35261272Sdim#endif 36