[libcxxabi] r347903 - [libcxx] Remove bad_array_length
Louis Dionne
ldionne at apple.com
Thu Nov 29 11:44:57 PST 2018
Author: ldionne
Date: Thu Nov 29 11:44:57 2018
New Revision: 347903
URL: http://llvm.org/viewvc/llvm-project?rev=347903&view=rev
Log:
[libcxx] Remove bad_array_length
Summary:
std::bad_array_length was added by n3467, but this never made it into C++.
This commit removes the definition of std::bad_array_length from the headers
AND from the shared library. See the comments in the ABI changelog for details
about the ABI implications of this change.
Reviewers: mclow.lists, dexonsmith, howard.hinnant, EricWF
Subscribers: christof, jkorous, libcxx-commits
Differential Revision: https://reviews.llvm.org/D54804
Modified:
libcxxabi/trunk/src/stdlib_exception.cpp
Modified: libcxxabi/trunk/src/stdlib_exception.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/stdlib_exception.cpp?rev=347903&r1=347902&r2=347903&view=diff
==============================================================================
--- libcxxabi/trunk/src/stdlib_exception.cpp (original)
+++ libcxxabi/trunk/src/stdlib_exception.cpp Thu Nov 29 11:44:57 2018
@@ -69,34 +69,4 @@ bad_array_new_length::what() const _NOEX
return "bad_array_new_length";
}
-// 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
-{
-}
-
-bad_array_length::~bad_array_length() _NOEXCEPT
-{
-}
-
-const char*
-bad_array_length::what() const _NOEXCEPT
-{
- return "bad_array_length";
-}
-
-
} // std
More information about the libcxx-commits
mailing list