[libcxxabi] r194208 - If libc++ has not declared bad_array_length, then declare it here just so that it gets into the binary.
Howard Hinnant
hhinnant at apple.com
Thu Nov 7 09:16:37 PST 2013
Author: hhinnant
Date: Thu Nov 7 11:16:37 2013
New Revision: 194208
URL: http://llvm.org/viewvc/llvm-project?rev=194208&view=rev
Log:
If libc++ has not declared bad_array_length, then declare it here just so that it gets into the binary.
Modified:
libcxxabi/trunk/src/cxa_new_delete.cpp
Modified: libcxxabi/trunk/src/cxa_new_delete.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_new_delete.cpp?rev=194208&r1=194207&r2=194208&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_new_delete.cpp (original)
+++ libcxxabi/trunk/src/cxa_new_delete.cpp Thu Nov 7 11:16:37 2013
@@ -232,6 +232,19 @@ bad_array_new_length::what() const _NOEX
// 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
{
}
More information about the cfe-commits
mailing list