[libunwind] Factor out sigreturn check condition. NFC
authorShoaib Meenai <smeenai@fb.com>
Tue, 24 May 2022 05:11:34 +0000 (22:11 -0700)
committerShoaib Meenai <smeenai@fb.com>
Thu, 26 May 2022 16:12:50 +0000 (09:12 -0700)
commit3d2b5b7b87857b0cc4c322cfc145c46c42fe2bbf
tree9c6690b12054b5194a6011a93b861cae35df67dd
parentc8eb83f2d007dd3279a9ff459f3464a3cd9568b6
[libunwind] Factor out sigreturn check condition. NFC

Create a macro for this instead of duplicating the architecture checks
everywhere. (It's a little redundant to use it when we're checking for a
specific architecture, but I'm also applying it there for consistency.)

Reviewed By: rprichard, MaskRay, #libunwind

Differential Revision: https://reviews.llvm.org/D126342
libunwind/src/UnwindCursor.hpp