[cfe-commits] [libcxxabi] r149249 - /libcxxabi/trunk/include/cxxabi.h

Howard Hinnant hhinnant at apple.com
Mon Jan 30 08:02:12 PST 2012


Author: hhinnant
Date: Mon Jan 30 10:02:11 2012
New Revision: 149249

URL: http://llvm.org/viewvc/llvm-project?rev=149249&view=rev
Log:
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.

Modified:
    libcxxabi/trunk/include/cxxabi.h

Modified: libcxxabi/trunk/include/cxxabi.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/include/cxxabi.h?rev=149249&r1=149248&r2=149249&view=diff
==============================================================================
--- libcxxabi/trunk/include/cxxabi.h (original)
+++ libcxxabi/trunk/include/cxxabi.h Mon Jan 30 10:02:11 2012
@@ -33,16 +33,16 @@
   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 @@
 
 // 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





More information about the cfe-commits mailing list