Working on reconciling out-of-tree patches to compiler-rt for building for iOS.
Summary: This is one of many changes needed for compiler-rt to get it building on iOS. Darwin doesn't have _Unwind_VRS_Get, instead use _Unwind_GetIP directly. Note: this change does not enable building for iOS, as there are more changes to come. Reviewers: kubabrecka, bogner, samsonov Reviewed By: samsonov Subscribers: samsonov, llvm-commits Differential Revision: http://reviews.llvm.org/D10516 llvm-svn: 240470
This commit is contained in:
parent
d1a1444c1a
commit
f1ba141041
|
|
@ -82,7 +82,7 @@ void SanitizerInitializeUnwinder() {
|
|||
#endif
|
||||
|
||||
uptr Unwind_GetIP(struct _Unwind_Context *ctx) {
|
||||
#ifdef __arm__
|
||||
#if defined(__arm__) && !SANITIZER_MAC
|
||||
uptr val;
|
||||
_Unwind_VRS_Result res = _Unwind_VRS_Get(ctx, _UVRSC_CORE,
|
||||
15 /* r15 = PC */, _UVRSD_UINT32, &val);
|
||||
|
|
|
|||
Loading…
Reference in New Issue