builtins: repair the builtins build with clang 3.8
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 18 Nov 2016 18:21:06 +0000 (18:21 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 18 Nov 2016 18:21:06 +0000 (18:21 +0000)
commit865a671fa2b828ceaed5b81b340d749a798253e4
treee753c407cf5776db9af93296eec895035f325ad0
parente4b9fd985214456ac9597567868da124d0b8d85d
builtins: repair the builtins build with clang 3.8

When the C unwinding personality was corrected to match the ARM EHABI
specification, the unwind header in clang was updated with necessary
declarations.  However, when building with an older compiler, we would not have
the necessary declarations.  This would result in a build failure.  Provide a
supplementary header to ensure that the necessary declarations are present for
the build of the C unwinding personality.

Note that this is NOT an ABI break.  It merely is a compile time failure due to
the constants not being present.  The constants here are reproduced
equivalently.  This header should permit building with clang[<3.9] as well as
gcc.

Addresses PR31035!

llvm-svn: 287359
compiler-rt/lib/builtins/gcc_personality_v0.c
compiler-rt/lib/builtins/unwind-ehabi-helpers.h [new file with mode: 0644]