summaryrefslogtreecommitdiff
path: root/contrib/libc++/src/exception.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2012-03-14 14:40:22 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2012-03-14 14:40:22 +0000
commit5cd69373309bbfd8b3d917b742566c6ed2a7baed (patch)
treed9a45c8129e1de9dfacd43f81cfb6e078d747f65 /contrib/libc++/src/exception.cpp
parent79d09835dd3c33a699b00d00ec50be6a4512b57f (diff)
parentacbeab898d6a7f4036c55962a2460aab3e0eda3f (diff)
Notes
Diffstat (limited to 'contrib/libc++/src/exception.cpp')
-rw-r--r--contrib/libc++/src/exception.cpp14
1 files changed, 9 insertions, 5 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
{