diff options
| author | David Chisnall <theraven@FreeBSD.org> | 2012-03-14 14:40:22 +0000 |
|---|---|---|
| committer | David Chisnall <theraven@FreeBSD.org> | 2012-03-14 14:40:22 +0000 |
| commit | 5cd69373309bbfd8b3d917b742566c6ed2a7baed (patch) | |
| tree | d9a45c8129e1de9dfacd43f81cfb6e078d747f65 /contrib/libc++/src | |
| parent | 79d09835dd3c33a699b00d00ec50be6a4512b57f (diff) | |
| parent | acbeab898d6a7f4036c55962a2460aab3e0eda3f (diff) | |
Notes
Diffstat (limited to 'contrib/libc++/src')
| -rw-r--r-- | contrib/libc++/src/exception.cpp | 14 | ||||
| -rw-r--r-- | contrib/libc++/src/new.cpp | 7 |
2 files changed, 11 insertions, 10 deletions
diff --git a/contrib/libc++/src/exception.cpp b/contrib/libc++/src/exception.cpp index 6b5e6984a606..6a5803d37745 100644 --- a/contrib/libc++/src/exception.cpp +++ b/contrib/libc++/src/exception.cpp @@ -114,13 +114,17 @@ exception::~exception() _NOEXCEPT { } -bad_exception::~bad_exception() _NOEXCEPT +const char* exception::what() const _NOEXCEPT { + return "std::exception"; } -const char* exception::what() const _NOEXCEPT +#endif // _LIBCPPABI_VERSION +#endif //LIBCXXRT +#ifndef _LIBCPPABI_VERSION + +bad_exception::~bad_exception() _NOEXCEPT { - return "std::exception"; } const char* bad_exception::what() const _NOEXCEPT @@ -128,8 +132,8 @@ const char* bad_exception::what() const _NOEXCEPT return "std::bad_exception"; } -#endif // _LIBCPPABI_VERSION -#endif //LIBCXXRT +#endif + exception_ptr::~exception_ptr() _NOEXCEPT { diff --git a/contrib/libc++/src/new.cpp b/contrib/libc++/src/new.cpp index 1c171a871b9b..1fb4b2da40d7 100644 --- a/contrib/libc++/src/new.cpp +++ b/contrib/libc++/src/new.cpp @@ -24,8 +24,6 @@ static std::new_handler __new_handler; #endif -#if !defined (LIBCXXRT) // && !defined(_LIBCPPABI_VERSION) - // Implement all new and delete operators as weak definitions // in this shared library, so that they can be overriden by programs // that define non-weak copies of the functions. @@ -134,8 +132,6 @@ operator delete[] (void* ptr, const std::nothrow_t&) _NOEXCEPT ::operator delete[](ptr); } -#endif // !_LIBCPPABI_VERSION && !LIBCXXRT - namespace std { @@ -171,6 +167,8 @@ bad_alloc::what() const _NOEXCEPT return "std::bad_alloc"; } +#endif //LIBCXXRT + bad_array_new_length::bad_array_new_length() _NOEXCEPT { } @@ -186,7 +184,6 @@ bad_array_new_length::what() const _NOEXCEPT } #endif -#endif //LIBCXXRT void __throw_bad_alloc() |
