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.)
Details
Details
- Reviewers
rprichard danielkiss uweigand MaskRay - Group Reviewers
Restricted Project - Commits
- rG3d2b5b7b8785: [libunwind] Factor out sigreturn check condition. NFC
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libunwind/src/UnwindCursor.hpp | ||
---|---|---|
35 | nit: For consistency, I wonder if this should define _LIBUNWIND_CHECK_LINUX_SIGRETURN to 1 instead of empty. __libunwind_config.h defines most of its boolean _LIBUNWIND_* macros to 1. (Exceptions I see include _LIBUNWIND_ARM_EHABI and _LIBUNWIND_TARGET_I386.) Alternately, the headers could define the boolean macros to empty, because we're always using defined(...) to test whether they're set. I'm also happy with this patch as-is, though. |
nit: For consistency, I wonder if this should define _LIBUNWIND_CHECK_LINUX_SIGRETURN to 1 instead of empty. __libunwind_config.h defines most of its boolean _LIBUNWIND_* macros to 1. (Exceptions I see include _LIBUNWIND_ARM_EHABI and _LIBUNWIND_TARGET_I386.)
Alternately, the headers could define the boolean macros to empty, because we're always using defined(...) to test whether they're set.
I'm also happy with this patch as-is, though.