unwind: unify _LIBUNWIND_ABORT
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 24 Apr 2016 21:00:59 +0000 (21:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 24 Apr 2016 21:00:59 +0000 (21:00 +0000)
commit03a061ffeb10bbba1cea80f0545fb5dd8238a3c6
tree75490f84160232cc67518e1108a2d1acf087bb6e
parent7793ba86d15f9352ef094845f3eac2f39de161f2
unwind: unify _LIBUNWIND_ABORT

Rather than use the `__assert_rtn` on libSystem based targets and a local
`assert_rtn` function on others, expand the function definition into a macro
which will perform the writing to stderr and then abort.  This unifies the
definition and behaviour across targets.

Ensure that we flush stderr prior to aborting.

llvm-svn: 267364
libunwind/src/config.h