summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2013-09-11 01:42:02 +0000
committerMarshall Clow <mclow.lists@gmail.com>2013-09-11 01:42:02 +0000
commit6c3f675c0bfee072f827b99b2b71fe54f92ee0c4 (patch)
treef987aa5cab0b24efb555c987ec63712f39c8818f
parent01c2084f452e3d384ae1e193a241a773f01896b8 (diff)
downloadlibcxxabi_35a-6c3f675c0bfee072f827b99b2b71fe54f92ee0c4.tar.gz
Adding bad_array_length to libc++abi
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@190479 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--src/cxa_new_delete.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cxa_new_delete.cpp b/src/cxa_new_delete.cpp
index 6352001..f6db1aa 100644
--- a/src/cxa_new_delete.cpp
+++ b/src/cxa_new_delete.cpp
@@ -9,6 +9,8 @@
// This file implements the new and delete operators.
//===----------------------------------------------------------------------===//
+#define _LIBCPP_BUILDING_NEW
+
#include <new>
#include <cstdlib>
@@ -228,4 +230,20 @@ bad_array_new_length::what() const _NOEXCEPT
return "bad_array_new_length";
}
+// bad_array_length
+
+bad_array_length::bad_array_length() _NOEXCEPT
+{
+}
+
+bad_array_length::~bad_array_length() _NOEXCEPT
+{
+}
+
+const char*
+bad_array_length::what() const _NOEXCEPT
+{
+ return "bad_array_length";
+}
+
} // std