Skip to content

Commit

Permalink
One more change required to build the sanitizers for iOS.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Bieneman committed Jun 24, 2015
1 parent adb110c commit a9e77ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler-rt/lib/sanitizer_common/CMakeLists.txt
Expand Up @@ -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
Expand Down
@@ -1,4 +1,4 @@
//===-- sanitizer_unwind_posix.cc ----------------------------------------===//
//===-- sanitizer_unwind_linux_libcdep.cc ---------------------------------===//
//
// The LLVM Compiler Infrastructure
//
Expand All @@ -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"

Expand Down Expand Up @@ -155,4 +155,4 @@ void BufferedStackTrace::SlowUnwindStackWithContext(uptr pc, void *context,

} // namespace __sanitizer

#endif // SANITIZER_POSIX
#endif // SANITIZER_FREEBSD || SANITIZER_LINUX

0 comments on commit a9e77ab

Please sign in to comment.