libphobos: Select the appropriate exception handler in getClassInfo
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 25 Sep 2021 21:18:53 +0000 (23:18 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 30 Sep 2021 13:07:19 +0000 (15:07 +0200)
commit8088a33df5f62fd6416fb8cb158b791e639aa707
tree5fb9d1c8bd0e552010f86971d057b92cac056014
parented3ec7343b7d104a3285336fbfc1e4719719f9b6
libphobos: Select the appropriate exception handler in getClassInfo

This is analogous to __gdc_personality, which ignores in-flight
exceptions that we haven't collided with yet.

libphobos/ChangeLog:

* libdruntime/gcc/deh.d (ExceptionHeader.getClassInfo): Move to...
(getClassInfo): ...here as free function.  Add lsda parameter.
(scanLSDA): Pass lsda to actionTableLookup.
(actionTableLookup): Add lsda parameter, pass to getClassInfo.
(__gdc_personality): Remove currentCfa variable.
libphobos/libdruntime/gcc/deh.d