[cfe-commits] [PATCH] Extend unwind.h with the ARM unwinder interface

John McCall rjmccall at apple.com
Thu Jan 19 11:52:32 PST 2012


On Jan 19, 2012, at 11:09 AM, James Molloy wrote:
> OK thanks - I'm not well versed on what Darwin does and does not use. #ifndef darwin should be fine, but wouldn't it be better to conditionalise on a predefine that defines what EH mode is being used?
> 
> something like #ifdef __ARM_EH_ABI, which could be defined in the frontend depending on the eh type given on the commandline?

I agree.  Since this is a Clang-specific header, though, we should use __has_feature.  Maybe __has_feature(arm_exceptions_abi)?

John.



More information about the cfe-commits mailing list