diff options
author | Harald van Dijk <harald@gigawatt.nl> | 2021-08-15 13:35:53 +0100 |
---|---|---|
committer | Harald van Dijk <harald@gigawatt.nl> | 2021-08-15 13:35:53 +0100 |
commit | 957334382cd12ec07b46c0ddfdcc220731f6d80f (patch) | |
tree | 809467e4fd6d35c0e54df9c0d9af043b2a4c6279 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | ccd7dda8e39adeaf5bbec3c7b68b68800dff7663 (diff) | |
download | llvm-957334382cd12ec07b46c0ddfdcc220731f6d80f.zip llvm-957334382cd12ec07b46c0ddfdcc220731f6d80f.tar.gz llvm-957334382cd12ec07b46c0ddfdcc220731f6d80f.tar.bz2 |
[ExecutionEngine] Check for libunwind before calling __register_frame
libgcc and libunwind have different flavours of __register_frame. Both
flavours are already correctly handled, except that the code to handle
the libunwind flavour is guarded by __APPLE__. This change uses the
presence of __unw_add_dynamic_fde in libunwind instead to detect whether
libunwind is used, rather than hardcoding it as Apple vs. non-Apple.
Fixes PR44074.
Thanks to Albert Jin <albert.jin@gmail.com> and Chris Schafmeister
<chris.schaf@verizon.net> for identifying the problem.
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D106129
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions