summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-03-14 14:11:13 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-03-14 14:11:13 +0000
commit1e02029f37edc72770ee62a71755affbc40350af (patch)
tree4adafc640b743dd897991179d02afb79b737084b /libcxx
parent5f13d66fb4153b360f9bd7ee2fcaf7fbb8ce1552 (diff)
downloadbcm5719-llvm-1e02029f37edc72770ee62a71755affbc40350af.tar.gz
bcm5719-llvm-1e02029f37edc72770ee62a71755affbc40350af.zip
Undo some overzealous #ifdefs for LIBCXXRT.
llvm-svn: 152718
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/src/exception.cpp14
-rw-r--r--libcxx/src/new.cpp7
2 files changed, 11 insertions, 10 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp
index 6b5e6984a60..6a5803d3774 100644
--- a/libcxx/src/exception.cpp
+++ b/libcxx/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/libcxx/src/new.cpp b/libcxx/src/new.cpp
index 1c171a871b9..1fb4b2da40d 100644
--- a/libcxx/src/new.cpp
+++ b/libcxx/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()
OpenPOWER on IntegriCloud