aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/exception.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-12-04 19:54:11 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-12-04 19:54:11 +0000
commit816cb8975d91d436da0dd56b8316c69080cb51b3 (patch)
tree248658899495cd8dbdac3d0c0cce61527100b5bb /libcxx/src/exception.cpp
parent66a1f86f7a58da781b7b8e43620139cc59a20820 (diff)
downloadllvm-816cb8975d91d436da0dd56b8316c69080cb51b3.zip
llvm-816cb8975d91d436da0dd56b8316c69080cb51b3.tar.gz
llvm-816cb8975d91d436da0dd56b8316c69080cb51b3.tar.bz2
Fix up uses of new/terminate/unexpected handlers to use the new getters.
llvm-svn: 120914
Diffstat (limited to 'libcxx/src/exception.cpp')
-rw-r--r--libcxx/src/exception.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp
index 062114c..6c389c2 100644
--- a/libcxx/src/exception.cpp
+++ b/libcxx/src/exception.cpp
@@ -38,7 +38,7 @@ std::get_unexpected() throw()
void
std::unexpected()
{
- (*__unexpected_handler)();
+ (*get_unexpected())();
// unexpected handler should not return
std::terminate();
}
@@ -62,7 +62,7 @@ std::terminate()
try
{
#endif // _LIBCPP_NO_EXCEPTIONS
- (*__terminate_handler)();
+ (*get_terminate())();
// handler should not return
::abort ();
#ifndef _LIBCPP_NO_EXCEPTIONS