[PATCH] One more change required to build the sanitizers for iOS.
Chris Bieneman
beanz at apple.com
Wed Jun 24 10:03:06 PDT 2015
Hi samsonov,
_Unwind_Backtrace is not available on iOS, so we should ifdef out the posix implementations of BufferedStackTrace::SlowUnwindStack and BufferedStackTrace::SlowUnwindStackWithContext on iOS.
http://reviews.llvm.org/D10696
Files:
lib/sanitizer_common/sanitizer_unwind_posix_libcdep.cc
Index: lib/sanitizer_common/sanitizer_unwind_posix_libcdep.cc
===================================================================
--- lib/sanitizer_common/sanitizer_unwind_posix_libcdep.cc
+++ lib/sanitizer_common/sanitizer_unwind_posix_libcdep.cc
@@ -108,6 +108,8 @@
return UNWIND_CONTINUE;
}
+#if !SANITIZER_IOS
+
void BufferedStackTrace::SlowUnwindStack(uptr pc, u32 max_depth) {
CHECK_GE(max_depth, 2);
size = 0;
@@ -153,6 +155,8 @@
trace_buffer[size++] = frames[i].absolute_pc + 2;
}
+#endif
+
} // namespace __sanitizer
#endif // SANITIZER_POSIX
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10696.28361.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150624/5afd2d21/attachment.bin>
More information about the llvm-commits
mailing list