mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-04 08:27:50 +00:00
One more change required to build the sanitizers for iOS.
Summary: _Unwind_Backtrace is not available on iOS, so we should ifdef out the posix implementations of BufferedStackTrace::SlowUnwindStack and BufferedStackTrace::SlowUnwindStackWithContext on iOS. Reviewers: samsonov Reviewed By: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10696 llvm-svn: 240586
This commit is contained in:
parent
adb110c372
commit
a9e77abc68
@ -44,7 +44,7 @@ set(SANITIZER_LIBCDEP_SOURCES
|
||||
sanitizer_symbolizer_libcdep.cc
|
||||
sanitizer_symbolizer_posix_libcdep.cc
|
||||
sanitizer_symbolizer_process_libcdep.cc
|
||||
sanitizer_unwind_posix_libcdep.cc)
|
||||
sanitizer_unwind_linux_libcdep.cc)
|
||||
|
||||
# Explicitly list all sanitizer_common headers. Not all of these are
|
||||
# included in sanitizer_common source files, but we need to depend on
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- sanitizer_unwind_posix.cc ----------------------------------------===//
|
||||
//===-- sanitizer_unwind_linux_libcdep.cc ---------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
@ -8,11 +8,11 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file contains the unwind.h-based (aka "slow") stack unwinding routines
|
||||
// available to the tools on Linux, Android, FreeBSD and OS X.
|
||||
// available to the tools on Linux, Android, and FreeBSD.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "sanitizer_platform.h"
|
||||
#if SANITIZER_POSIX
|
||||
#if SANITIZER_FREEBSD || SANITIZER_LINUX
|
||||
#include "sanitizer_common.h"
|
||||
#include "sanitizer_stacktrace.h"
|
||||
|
||||
@ -155,4 +155,4 @@ void BufferedStackTrace::SlowUnwindStackWithContext(uptr pc, void *context,
|
||||
|
||||
} // namespace __sanitizer
|
||||
|
||||
#endif // SANITIZER_POSIX
|
||||
#endif // SANITIZER_FREEBSD || SANITIZER_LINUX
|
Loading…
x
Reference in New Issue
Block a user