Changeset View
Changeset View
Standalone View
Standalone View
contrib/libcxxrt/unwind-itanium.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
/* The C++ ABI requires exception_class, private_1, and private_2 to | /* The C++ ABI requires exception_class, private_1, and private_2 to | ||||
be of type uint64 and the entire structure to be | be of type uint64 and the entire structure to be | ||||
double-word-aligned. Please note that exception_class stays 64-bit | double-word-aligned. Please note that exception_class stays 64-bit | ||||
even on 32-bit machines for gcc compatibility. */ | even on 32-bit machines for gcc compatibility. */ | ||||
struct _Unwind_Exception | struct _Unwind_Exception | ||||
{ | { | ||||
uint64_t exception_class; | uint64_t exception_class; | ||||
_Unwind_Exception_Cleanup_Fn exception_cleanup; | _Unwind_Exception_Cleanup_Fn exception_cleanup; | ||||
unsigned long private_1; | uintptr_t private_1; | ||||
unsigned long private_2; | uintptr_t private_2; | ||||
} ; | #if __SIZEOF_POINTER__ == 4 | ||||
uint32_t reserved[3]; | |||||
#endif | |||||
} __attribute__((__aligned__)); | |||||
theraven: Please can you guard this with the same macro? | |||||
extern _Unwind_Reason_Code _Unwind_RaiseException (struct _Unwind_Exception *); | extern _Unwind_Reason_Code _Unwind_RaiseException (struct _Unwind_Exception *); | ||||
extern _Unwind_Reason_Code _Unwind_ForcedUnwind (struct _Unwind_Exception *, | extern _Unwind_Reason_Code _Unwind_ForcedUnwind (struct _Unwind_Exception *, | ||||
_Unwind_Stop_Fn, void *); | _Unwind_Stop_Fn, void *); | ||||
extern void _Unwind_Resume (struct _Unwind_Exception *); | extern void _Unwind_Resume (struct _Unwind_Exception *); | ||||
extern void _Unwind_DeleteException (struct _Unwind_Exception *); | extern void _Unwind_DeleteException (struct _Unwind_Exception *); | ||||
extern unsigned long _Unwind_GetGR (struct _Unwind_Context *, int); | extern unsigned long _Unwind_GetGR (struct _Unwind_Context *, int); | ||||
extern void _Unwind_SetGR (struct _Unwind_Context *, int, unsigned long); | extern void _Unwind_SetGR (struct _Unwind_Context *, int, unsigned long); | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |
Please can you guard this with the same macro?