libc++: switch from using _ATTRIBUTE(noreturn) (which conflicts with a

platform-provided macro on some systems) to _LIBCPP_NORETURN.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@160773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Smith
2012-07-26 02:04:22 +00:00
parent 8131a01a9c
commit 0405cc4ae0
3 changed files with 15 additions and 15 deletions

View File

@@ -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