aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/exception.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-07-26 02:04:22 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-07-26 02:04:22 +0000
commit535a86c3f8324a5d8034d09d2a24defd49420559 (patch)
tree51612745a55b73e021bf68800653746e19cc6c4d /libcxx/src/exception.cpp
parentcdc3987ca8ee01fc02f4d7cb59885082ae559a0e (diff)
downloadllvm-535a86c3f8324a5d8034d09d2a24defd49420559.zip
llvm-535a86c3f8324a5d8034d09d2a24defd49420559.tar.gz
llvm-535a86c3f8324a5d8034d09d2a24defd49420559.tar.bz2
libc++: switch from using _ATTRIBUTE(noreturn) (which conflicts with a
platform-provided macro on some systems) to _LIBCPP_NORETURN. llvm-svn: 160773
Diffstat (limited to 'libcxx/src/exception.cpp')
-rw-r--r--libcxx/src/exception.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp
index a8ddcc4..0dbb660 100644
--- a/libcxx/src/exception.cpp
+++ b/libcxx/src/exception.cpp
@@ -56,7 +56,7 @@ get_unexpected() _NOEXCEPT
return __sync_fetch_and_add(&__unexpected_handler, (unexpected_handler)0);
}
-_ATTRIBUTE(noreturn)
+_LIBCPP_NORETURN
void
unexpected()
{
@@ -77,7 +77,7 @@ get_terminate() _NOEXCEPT
return __sync_fetch_and_add(&__terminate_handler, (terminate_handler)0);
}
-_ATTRIBUTE(noreturn)
+_LIBCPP_NORETURN
void
terminate() _NOEXCEPT
{
@@ -184,7 +184,7 @@ nested_exception::~nested_exception() _NOEXCEPT
{
}
-_ATTRIBUTE(noreturn)
+_LIBCPP_NORETURN
void
nested_exception::rethrow_nested() const
{
@@ -209,7 +209,7 @@ exception_ptr current_exception() _NOEXCEPT
#endif // __APPLE__
}
-_ATTRIBUTE(noreturn)
+_LIBCPP_NORETURN
void rethrow_exception(exception_ptr p)
{
#if HAVE_DEPENDENT_EH_ABI