diff options
author | Marshall Clow <mclow@qualcomm.com> | 2011-06-03 02:04:41 +0000 |
---|---|---|
committer | Marshall Clow <mclow@qualcomm.com> | 2011-06-03 02:04:41 +0000 |
commit | 4c2acbcfc928a7d4f18b2c9202288abdf0131219 (patch) | |
tree | 9fde66908e2d83dcae9e00e65449a9ff3e257a8a /include | |
parent | 92827189cbb1e63dfebf0a46aac4372c3089ff11 (diff) |
Added __cxa_bad_cast and __cxa_bad_typeid and placeholder NORETURN macro
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@132524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/cxxabi.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/cxxabi.h b/include/cxxabi.h index 918cd5d..ec69b55 100644 --- a/include/cxxabi.h +++ b/include/cxxabi.h @@ -18,6 +18,8 @@ #include <stddef.h> #include <stdint.h> +#define LIBCXXABI_NORETURN + namespace std { class type_info; // forward declaration } @@ -47,16 +49,16 @@ extern void __cxa_rethrow(); // 2.6 Auxiliary Runtime APIs -extern void __cxa_bad_cast(); -extern void __cxa_bad_typeid(); +extern LIBCXXABI_NORETURN void __cxa_bad_cast(void); +extern LIBCXXABI_NORETURN void __cxa_bad_typeid(void); // 3.2.6 Pure Virtual Function API -extern void __cxa_pure_virtual(void); +extern LIBCXXABI_NORETURN void __cxa_pure_virtual(void); // 3.2.7 Deleted Virtual Function API -extern void __cxa_deleted_virtual(void); +extern LIBCXXABI_NORETURN void __cxa_deleted_virtual(void); // 3.3.2 One-time Construction API extern int __cxa_guard_acquire(uint64_t*); |