Headers: improve ARM EHABI coverage of unwind.h
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 26 Jul 2017 22:55:23 +0000 (22:55 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 26 Jul 2017 22:55:23 +0000 (22:55 +0000)
commit9c13bbe953a93e0dc87bffd2424170da63d0bd44
tree32bef81d5409b59f945d7bdcba94275f9b5550f6
parent6c4f5b41a365eec558fc2e3968b4176e8d55c3bd
Headers: improve ARM EHABI coverage of unwind.h

Ensure that we define the `_Unwind_Control_Block` structure used on ARM
EHABI targets.  This is needed for building libc++abi with the unwind.h
from the resource dir.  A minor fallout of this is that we needed to
create a typedef for _Unwind_Exception to work across ARM EHABI and
non-EHABI targets.  The structure definitions here are based originally
on the documentation from ARM under the "Exception Handling ABI for the
ARMĀ® Architecture" Section 7.2.  They are then adjusted to more closely
reflect the definition in libunwind from LLVM.  Those changes are
compatible in layout but permit easier use in libc++abi and help
maintain compatibility between libunwind and the compiler provided
definition.

llvm-svn: 309226
clang/lib/Headers/unwind.h