forked from OSchip/llvm-project
[SystemZ/ZOS]__(de)register_frame are not available on z/OS.
The functions `__register_frame`/`__deregister_frame` are not available on z/OS, so add a guard to not use them. Reviewed By: lhames, abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D84787
This commit is contained in:
parent
dad04e62f1
commit
c2ae7934c8
|
@ -631,8 +631,8 @@ Expected<Symbol &> EHFrameEdgeFixer::getOrCreateSymbol(ParseContext &PC,
|
|||
|
||||
// Determine whether we can register EH tables.
|
||||
#if (defined(__GNUC__) && !defined(__ARM_EABI__) && !defined(__ia64__) && \
|
||||
!(defined(_AIX) && defined(__ibmxl__)) && !defined(__SEH__) && \
|
||||
!defined(__USING_SJLJ_EXCEPTIONS__))
|
||||
!(defined(_AIX) && defined(__ibmxl__)) && !defined(__MVS__) && \
|
||||
!defined(__SEH__) && !defined(__USING_SJLJ_EXCEPTIONS__))
|
||||
#define HAVE_EHTABLE_SUPPORT 1
|
||||
#else
|
||||
#define HAVE_EHTABLE_SUPPORT 0
|
||||
|
|
|
@ -33,8 +33,8 @@ RTDyldMemoryManager::~RTDyldMemoryManager() {}
|
|||
|
||||
// Determine whether we can register EH tables.
|
||||
#if (defined(__GNUC__) && !defined(__ARM_EABI__) && !defined(__ia64__) && \
|
||||
!(defined(_AIX) && defined(__ibmxl__)) && !defined(__SEH__) && \
|
||||
!defined(__USING_SJLJ_EXCEPTIONS__))
|
||||
!(defined(_AIX) && defined(__ibmxl__)) && !defined(__MVS__) && \
|
||||
!defined(__SEH__) && !defined(__USING_SJLJ_EXCEPTIONS__))
|
||||
#define HAVE_EHTABLE_SUPPORT 1
|
||||
#else
|
||||
#define HAVE_EHTABLE_SUPPORT 0
|
||||
|
|
Loading…
Reference in New Issue