[libsanitizer] Make sanitizer_unwind_posix.cc a libcdep source file.

Guard the source with #if SANITIZER_POSIX to fix compilation on Windows.
use it only in 

llvm-svn: 216882
This commit is contained in:
Alexander Potapenko 2014-09-01 13:07:50 +00:00
parent 659dfb4dc8
commit a909e493f1
2 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,6 @@ set(SANITIZER_SOURCES
sanitizer_symbolizer_win.cc
sanitizer_tls_get_addr.cc
sanitizer_thread_registry.cc
sanitizer_unwind_posix.cc
sanitizer_win.cc)
set(SANITIZER_LIBCDEP_SOURCES
@ -40,7 +39,8 @@ set(SANITIZER_LIBCDEP_SOURCES
sanitizer_stacktrace_libcdep.cc
sanitizer_stoptheworld_linux_libcdep.cc
sanitizer_symbolizer_libcdep.cc
sanitizer_symbolizer_posix_libcdep.cc)
sanitizer_symbolizer_posix_libcdep.cc
sanitizer_unwind_posix_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

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===//
#include "sanitizer_platform.h"
#if SANITIZER_POSIX
#include "sanitizer_common.h"
#include "sanitizer_stacktrace.h"
@ -149,3 +149,5 @@ void StackTrace::SlowUnwindStackWithContext(uptr pc, void *context,
}
} // namespace __sanitizer
#endif // SANITIZER_POSIX