diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-08-25 17:47:09 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-08-25 17:47:09 +0000 |
commit | 0fc8cec796387575c0c4a2635ba5579f60deeb75 (patch) | |
tree | f63bdb0decdc8765207400d8af7d86f84fc09f48 /libcxx/src/experimental/filesystem | |
parent | 6c43b850b777eb60e8c2146d7a4e0303937078d9 (diff) | |
download | bcm5719-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/src/experimental/filesystem')
-rw-r--r-- | libcxx/src/experimental/filesystem/directory_iterator.cpp | 4 | ||||
-rw-r--r-- | libcxx/src/experimental/filesystem/operations.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/src/experimental/filesystem/directory_iterator.cpp b/libcxx/src/experimental/filesystem/directory_iterator.cpp index fa217ba7a12..a888dcfa119 100644 --- a/libcxx/src/experimental/filesystem/directory_iterator.cpp +++ b/libcxx/src/experimental/filesystem/directory_iterator.cpp @@ -20,7 +20,7 @@ inline bool capture_error_or_throw(std::error_code* user_ec, *user_ec = my_ec; return true; } - __libcpp_throw(filesystem_error(msg, std::forward<Args>(args)..., my_ec)); + __throw_filesystem_error(msg, std::forward<Args>(args)..., my_ec); return false; } @@ -33,7 +33,7 @@ inline bool set_or_throw(std::error_code& my_ec, *user_ec = my_ec; return true; } - __libcpp_throw(filesystem_error(msg, std::forward<Args>(args)..., my_ec)); + __throw_filesystem_error(msg, std::forward<Args>(args)..., my_ec); return false; } diff --git a/libcxx/src/experimental/filesystem/operations.cpp b/libcxx/src/experimental/filesystem/operations.cpp index 369996fcbe6..cff27a0e54b 100644 --- a/libcxx/src/experimental/filesystem/operations.cpp +++ b/libcxx/src/experimental/filesystem/operations.cpp @@ -51,7 +51,7 @@ void set_or_throw(std::error_code const& m_ec, std::error_code* ec, } else { string msg_s("std::experimental::filesystem::"); msg_s += msg; - __libcpp_throw(filesystem_error(msg_s, p, p2, m_ec)); + __throw_filesystem_error(msg_s, p, p2, m_ec); } } |