diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-01-30 16:02:11 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-01-30 16:02:11 +0000 |
commit | 5bbc597f1e76962492385ec4f6a53910dd800ebd (patch) | |
tree | 185846ad42c2068202d0446b704ed6ad8db37fb0 /libcxxabi | |
parent | 20af25f47b1716f5a90d8857d6fcee7994d2e217 (diff) | |
download | llvm-5bbc597f1e76962492385ec4f6a53910dd800ebd.tar.gz |
Put throw() clauses back on these functions in cxxabi.h. This header must be C++03 compatible and these throw specs are consistent with the current cxxabi.h that Apple ships.
llvm-svn: 149249
Diffstat (limited to 'libcxxabi')
-rw-r--r-- | libcxxabi/include/cxxabi.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libcxxabi/include/cxxabi.h b/libcxxabi/include/cxxabi.h index f753a3271b19..6d04555148ea 100644 --- a/libcxxabi/include/cxxabi.h +++ b/libcxxabi/include/cxxabi.h @@ -33,16 +33,16 @@ namespace __cxxabiv1 { extern "C" { // 2.4.2 Allocating the Exception Object -extern void * __cxa_allocate_exception(size_t thrown_size) noexcept; -extern void __cxa_free_exception(void * thrown_exception) noexcept; +extern void * __cxa_allocate_exception(size_t thrown_size) throw(); +extern void __cxa_free_exception(void * thrown_exception) throw(); // 2.4.3 Throwing the Exception Object extern LIBCXXABI_NORETURN void __cxa_throw(void * thrown_exception, std::type_info * tinfo, void (*dest)(void *)); // 2.5.3 Exception Handlers -extern void * __cxa_get_exception_ptr(void * exceptionObject) noexcept; -extern void * __cxa_begin_catch(void * exceptionObject) noexcept; +extern void * __cxa_get_exception_ptr(void * exceptionObject) throw(); +extern void * __cxa_begin_catch(void * exceptionObject) throw(); extern void __cxa_end_catch(); extern std::type_info * __cxa_current_exception_type(); @@ -157,13 +157,13 @@ extern char* __cxa_demangle(const char* mangled_name, // Apple additions to support C++ 0x exception_ptr class // These are primitives to wrap a smart pointer around an exception object -extern void * __cxa_current_primary_exception() noexcept; +extern void * __cxa_current_primary_exception() throw(); extern void __cxa_rethrow_primary_exception(void* primary_exception); -extern void __cxa_increment_exception_refcount(void* primary_exception) noexcept; -extern void __cxa_decrement_exception_refcount(void* primary_exception) noexcept; +extern void __cxa_increment_exception_refcount(void* primary_exception) throw(); +extern void __cxa_decrement_exception_refcount(void* primary_exception) throw(); // Apple addition to support std::uncaught_exception() -extern bool __cxa_uncaught_exception() noexcept; +extern bool __cxa_uncaught_exception() throw(); } // extern "C" } // namespace __cxxabiv1 |