diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2013-09-11 01:38:42 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2013-09-11 01:38:42 +0000 |
commit | 6e8ebb2ce9f5a10d52589654709a85484c462ae2 (patch) | |
tree | 0ad140bad58d1692008f2312bb427ca6ad32aaf1 /libcxx/src | |
parent | 3369612808969120204baf632628aaaeb39d44f7 (diff) | |
download | bcm5719-llvm-6e8ebb2ce9f5a10d52589654709a85484c462ae2.tar.gz bcm5719-llvm-6e8ebb2ce9f5a10d52589654709a85484c462ae2.zip |
Adding bad_array_length to libc++
llvm-svn: 190478
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/new.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp index b23a516ff37..4a2af8bcab1 100644 --- a/libcxx/src/new.cpp +++ b/libcxx/src/new.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +#define _LIBCPP_BUILDING_NEW + #include <stdlib.h> #include "new" @@ -187,12 +189,26 @@ bad_array_new_length::~bad_array_new_length() _NOEXCEPT } const char* +bad_array_length::what() const _NOEXCEPT +{ + return "bad_array_length"; +} + +bad_array_length::bad_array_length() _NOEXCEPT +{ +} + +bad_array_length::~bad_array_length() _NOEXCEPT +{ +} + +const char* bad_array_new_length::what() const _NOEXCEPT { return "bad_array_new_length"; } -#endif +#endif // _LIBCPPABI_VERSION void __throw_bad_alloc() |