Undo some overzealous #ifdefs for LIBCXXRT.
llvm-svn: 152718
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 1e02029f37edc72770ee62a71755affbc40350af
diff --git a/src/exception.cpp b/src/exception.cpp
index 6b5e698..6a5803d 100644
--- a/src/exception.cpp
+++ b/src/exception.cpp
@@ -114,22 +114,26 @@
{
}
-bad_exception::~bad_exception() _NOEXCEPT
-{
-}
-
const char* exception::what() const _NOEXCEPT
{
return "std::exception";
}
+#endif // _LIBCPPABI_VERSION
+#endif //LIBCXXRT
+#ifndef _LIBCPPABI_VERSION
+
+bad_exception::~bad_exception() _NOEXCEPT
+{
+}
+
const char* bad_exception::what() const _NOEXCEPT
{
return "std::bad_exception";
}
-#endif // _LIBCPPABI_VERSION
-#endif //LIBCXXRT
+#endif
+
exception_ptr::~exception_ptr() _NOEXCEPT
{