summaryrefslogtreecommitdiffstats
path: root/libcxx/include/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/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/string_view')
-rw-r--r--libcxx/include/string_view6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/string_view b/libcxx/include/string_view
index 67fc60656f6..47ea926f637 100644
--- a/libcxx/include/string_view
+++ b/libcxx/include/string_view
@@ -261,7 +261,7 @@ public:
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];
}
@@ -319,7 +319,7 @@ public:
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 );
copy_n(begin() + __pos, __rlen, __s );
return __rlen;
@@ -329,7 +329,7 @@ public:
basic_string_view substr(size_type __pos = 0, size_type __n = npos) const
{
return __pos > size()
- ? (__libcpp_throw((out_of_range("string_view::substr"))), basic_string_view())
+ ? (__throw_out_of_range("string_view::substr"), basic_string_view())
: basic_string_view(data() + __pos, _VSTD::min(__n, size() - __pos));
}
OpenPOWER on IntegriCloud