Re-add bad_cast and bad_typeid default ctor definitions under libsupc++.
libsupc++ declares these constructors inline, so we won't necessarily get a definition for them in the library. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@191931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,12 +20,18 @@
|
|||||||
|
|
||||||
#include "typeinfo"
|
#include "typeinfo"
|
||||||
|
|
||||||
#if !defined(LIBCXXRT) && !defined(_LIBCPPABI_VERSION) && !defined(__GLIBCXX__)
|
#if !defined(LIBCXXRT) && !defined(_LIBCPPABI_VERSION)
|
||||||
|
|
||||||
std::bad_cast::bad_cast() _NOEXCEPT
|
std::bad_cast::bad_cast() _NOEXCEPT
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::bad_typeid::bad_typeid() _NOEXCEPT
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifndef __GLIBCXX__
|
||||||
|
|
||||||
std::bad_cast::~bad_cast() _NOEXCEPT
|
std::bad_cast::~bad_cast() _NOEXCEPT
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -36,10 +42,6 @@ std::bad_cast::what() const _NOEXCEPT
|
|||||||
return "std::bad_cast";
|
return "std::bad_cast";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::bad_typeid::bad_typeid() _NOEXCEPT
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
std::bad_typeid::~bad_typeid() _NOEXCEPT
|
std::bad_typeid::~bad_typeid() _NOEXCEPT
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -67,4 +69,5 @@ std::bad_typeid::what() const _NOEXCEPT
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // !LIBCXXRT && !_LIBCPPABI_VERSION && !__GLIBCXX__
|
#endif // !__GLIBCXX__
|
||||||
|
#endif // !LIBCXXRT && !_LIBCPPABI_VERSION
|
||||||
|
Reference in New Issue
Block a user