Fix conditionals on __Unwind_SjLj_* functions to only build for SJLJ based architectures

llvm-svn: 192241
This commit is contained in:
Nick Kledzik 2013-10-08 21:57:22 +00:00
parent 9112ac2136
commit f6330ddc0d
1 changed files with 2 additions and 1 deletions

View File

@ -183,10 +183,11 @@ bool checkKeyMgrRegisteredFDEs(uintptr_t pc, void *&fde) {
}
#if !FOR_DYLD
#if !FOR_DYLD && _LIBUNWIND_BUILD_SJLJ_APIS
#include <System/pthread_machdep.h>
// Accessors to get get/set linked list of frames for sjlj based execeptions.
_LIBUNWIND_HIDDEN
struct _Unwind_FunctionContext *__Unwind_SjLj_GetTopOfFunctionStack() {
return (struct _Unwind_FunctionContext *)