summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental/string_view
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-08-25 17:47:09 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-08-25 17:47:09 +0000
commit0fc8cec796387575c0c4a2635ba5579f60deeb75 (patch)
treef63bdb0decdc8765207400d8af7d86f84fc09f48 /libcxx/include/experimental/string_view
parent6c43b850b777eb60e8c2146d7a4e0303937078d9 (diff)
downloadbcm5719-llvm-0fc8cec796387575c0c4a2635ba5579f60deeb75.tar.gz
bcm5719-llvm-0fc8cec796387575c0c4a2635ba5579f60deeb75.zip
Followon to r279744. Find the other exception types and make __throw_XXX routines (and call them). Remove the generic __libcpp_throw routine, since no one uses it anymore.
llvm-svn: 279763
Diffstat (limited to 'libcxx/include/experimental/string_view')
-rw-r--r--libcxx/include/experimental/string_view4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/experimental/string_view b/libcxx/include/experimental/string_view
index f8b51286c67..a62fe6e95a1 100644
--- a/libcxx/include/experimental/string_view
+++ b/libcxx/include/experimental/string_view
@@ -281,7 +281,7 @@ _LIBCPP_BEGIN_NAMESPACE_LFTS
const_reference at(size_type __pos) const
{
return __pos >= size()
- ? (__libcpp_throw(out_of_range("string_view::at")), __data[0])
+ ? (__throw_out_of_range("string_view::at"), __data[0])
: __data[__pos];
}
@@ -352,7 +352,7 @@ _LIBCPP_BEGIN_NAMESPACE_LFTS
size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const
{
if ( __pos > size())
- __libcpp_throw(out_of_range("string_view::copy"));
+ __throw_out_of_range("string_view::copy");
size_type __rlen = _VSTD::min( __n, size() - __pos );
_VSTD::copy_n(begin() + __pos, __rlen, __s );
return __rlen;
OpenPOWER on IntegriCloud