Move typeinfos for exceptions in <stdexcept> to the abi
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@150835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e9f55f2d2
commit
e1642e1c00
@ -201,3 +201,68 @@ __ZTISt10bad_typeid
|
|||||||
__ZTISt8bad_cast
|
__ZTISt8bad_cast
|
||||||
___cxa_bad_typeid
|
___cxa_bad_typeid
|
||||||
___cxa_bad_cast
|
___cxa_bad_cast
|
||||||
|
|
||||||
|
__ZNKSt11logic_error4whatEv
|
||||||
|
__ZNSt11logic_errorD0Ev
|
||||||
|
__ZNSt11logic_errorD1Ev
|
||||||
|
__ZNSt11logic_errorD2Ev
|
||||||
|
__ZTISt11logic_error
|
||||||
|
__ZTSSt11logic_error
|
||||||
|
__ZTVSt11logic_error
|
||||||
|
|
||||||
|
__ZNKSt13runtime_error4whatEv
|
||||||
|
__ZNSt13runtime_errorD0Ev
|
||||||
|
__ZNSt13runtime_errorD1Ev
|
||||||
|
__ZNSt13runtime_errorD2Ev
|
||||||
|
__ZTISt13runtime_error
|
||||||
|
__ZTSSt13runtime_error
|
||||||
|
__ZTVSt13runtime_error
|
||||||
|
|
||||||
|
__ZNSt11range_errorD0Ev
|
||||||
|
__ZNSt11range_errorD1Ev
|
||||||
|
__ZNSt11range_errorD2Ev
|
||||||
|
__ZTISt11range_error
|
||||||
|
__ZTSSt11range_error
|
||||||
|
__ZTVSt11range_error
|
||||||
|
|
||||||
|
__ZNSt12domain_errorD0Ev
|
||||||
|
__ZNSt12domain_errorD1Ev
|
||||||
|
__ZNSt12domain_errorD2Ev
|
||||||
|
__ZTISt12domain_error
|
||||||
|
__ZTSSt12domain_error
|
||||||
|
__ZTVSt12domain_error
|
||||||
|
|
||||||
|
__ZNSt12length_errorD0Ev
|
||||||
|
__ZNSt12length_errorD1Ev
|
||||||
|
__ZNSt12length_errorD2Ev
|
||||||
|
__ZTISt12length_error
|
||||||
|
__ZTSSt12length_error
|
||||||
|
__ZTVSt12length_error
|
||||||
|
|
||||||
|
__ZNSt12out_of_rangeD0Ev
|
||||||
|
__ZNSt12out_of_rangeD1Ev
|
||||||
|
__ZNSt12out_of_rangeD2Ev
|
||||||
|
__ZTISt12out_of_range
|
||||||
|
__ZTSSt12out_of_range
|
||||||
|
__ZTVSt12out_of_range
|
||||||
|
|
||||||
|
__ZNSt14overflow_errorD0Ev
|
||||||
|
__ZNSt14overflow_errorD1Ev
|
||||||
|
__ZNSt14overflow_errorD2Ev
|
||||||
|
__ZTISt14overflow_error
|
||||||
|
__ZTSSt14overflow_error
|
||||||
|
__ZTVSt14overflow_error
|
||||||
|
|
||||||
|
__ZNSt15underflow_errorD0Ev
|
||||||
|
__ZNSt15underflow_errorD1Ev
|
||||||
|
__ZNSt15underflow_errorD2Ev
|
||||||
|
__ZTISt15underflow_error
|
||||||
|
__ZTSSt15underflow_error
|
||||||
|
__ZTVSt15underflow_error
|
||||||
|
|
||||||
|
__ZNSt16invalid_argumentD0Ev
|
||||||
|
__ZNSt16invalid_argumentD1Ev
|
||||||
|
__ZNSt16invalid_argumentD2Ev
|
||||||
|
__ZTISt16invalid_argument
|
||||||
|
__ZTSSt16invalid_argument
|
||||||
|
__ZTVSt16invalid_argument
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include "system_error"
|
#include "system_error"
|
||||||
|
#include <cxxabi.h>
|
||||||
|
|
||||||
// Note: optimize for size
|
// Note: optimize for size
|
||||||
|
|
||||||
@ -113,6 +114,8 @@ logic_error::operator=(const logic_error& le) _NOEXCEPT
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _LIBCPPABI_VERSION
|
||||||
|
|
||||||
logic_error::~logic_error() _NOEXCEPT
|
logic_error::~logic_error() _NOEXCEPT
|
||||||
{
|
{
|
||||||
__libcpp_nmstr& s = (__libcpp_nmstr&)__imp_;
|
__libcpp_nmstr& s = (__libcpp_nmstr&)__imp_;
|
||||||
@ -126,6 +129,8 @@ logic_error::what() const _NOEXCEPT
|
|||||||
return s.c_str();
|
return s.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
runtime_error::runtime_error(const string& msg)
|
runtime_error::runtime_error(const string& msg)
|
||||||
{
|
{
|
||||||
__libcpp_nmstr& s = (__libcpp_nmstr&)__imp_;
|
__libcpp_nmstr& s = (__libcpp_nmstr&)__imp_;
|
||||||
@ -153,6 +158,8 @@ runtime_error::operator=(const runtime_error& le) _NOEXCEPT
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _LIBCPPABI_VERSION
|
||||||
|
|
||||||
runtime_error::~runtime_error() _NOEXCEPT
|
runtime_error::~runtime_error() _NOEXCEPT
|
||||||
{
|
{
|
||||||
__libcpp_nmstr& s = (__libcpp_nmstr&)__imp_;
|
__libcpp_nmstr& s = (__libcpp_nmstr&)__imp_;
|
||||||
@ -175,4 +182,6 @@ range_error::~range_error() _NOEXCEPT {}
|
|||||||
overflow_error::~overflow_error() _NOEXCEPT {}
|
overflow_error::~overflow_error() _NOEXCEPT {}
|
||||||
underflow_error::~underflow_error() _NOEXCEPT {}
|
underflow_error::~underflow_error() _NOEXCEPT {}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
} // std
|
} // std
|
||||||
|
Loading…
x
Reference in New Issue
Block a user