From 66da53e0dacae427272360cb02ddf76772fb5d59 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 7 Nov 2013 17:16:37 +0000 Subject: If libc++ has not declared bad_array_length, then declare it here just so that it gets into the binary. llvm-svn: 194208 --- libcxxabi/src/cxa_new_delete.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libcxxabi/src/cxa_new_delete.cpp') 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 { } -- cgit v1.2.3