summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/cxa_new_delete.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-11-07 17:16:37 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-11-07 17:16:37 +0000
commit66da53e0dacae427272360cb02ddf76772fb5d59 (patch)
tree1f2d5b69be3102c01faa204609e2a1c47f8dd488 /libcxxabi/src/cxa_new_delete.cpp
parent88960d151ef9c34fe93c3fbda71707124dd91710 (diff)
downloadbcm5719-llvm-66da53e0dacae427272360cb02ddf76772fb5d59.tar.gz
bcm5719-llvm-66da53e0dacae427272360cb02ddf76772fb5d59.zip
If libc++ has not declared bad_array_length, then declare it here just so that it gets into the binary.
llvm-svn: 194208
Diffstat (limited to 'libcxxabi/src/cxa_new_delete.cpp')
-rw-r--r--libcxxabi/src/cxa_new_delete.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libcxxabi/src/cxa_new_delete.cpp b/libcxxabi/src/cxa_new_delete.cpp
index f6db1aa23ad..25a5454e05e 100644
--- a/libcxxabi/src/cxa_new_delete.cpp
+++ b/libcxxabi/src/cxa_new_delete.cpp
@@ -232,6 +232,19 @@ bad_array_new_length::what() const _NOEXCEPT
// bad_array_length
+#ifndef _LIBCPP_BAD_ARRAY_LENGTH_DEFINED
+
+class _LIBCPP_EXCEPTION_ABI bad_array_length
+ : public bad_alloc
+{
+public:
+ bad_array_length() _NOEXCEPT;
+ virtual ~bad_array_length() _NOEXCEPT;
+ virtual const char* what() const _NOEXCEPT;
+};
+
+#endif // _LIBCPP_BAD_ARRAY_LENGTH_DEFINED
+
bad_array_length::bad_array_length() _NOEXCEPT
{
}
OpenPOWER on IntegriCloud