This is an archive of the discontinued LLVM Phabricator instance.

FuncUnwinders: Factor out address validity check
AbandonedPublic

Authored by labath on Apr 23 2019, 5:34 AM.

Details

Summary

Some (but not all) of the unwind plan creation functions were checking
the validity of their address range before they attempted to create the
unwind plan.

Since a FuncUnwinders object cannot do anything reasonable with an
invalid address range, in this patch I remove the checks in from the
creation functions, and instead make it's validity a class invariant.
This makes it the responsibility of whoever's creating the FuncUnwinders
to ensure it does that with a valid address range, which is easy to
achieve as there is only one place we are doing that.

Event Timeline

labath created this revision.Apr 23 2019, 5:34 AM
labath abandoned this revision.Nov 26 2019, 6:46 AM