From e74968cbb29c80073e4ff440555e35f3fbed2f20 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 7 Nov 2013 06:33:06 +0000 Subject: [Sanitizer] Call Windows unwinder 'slow' and share StackTrace::Unwind across all platforms. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194193 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_posix_libcdep.cc | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/sanitizer_common/sanitizer_posix_libcdep.cc') diff --git a/lib/sanitizer_common/sanitizer_posix_libcdep.cc b/lib/sanitizer_common/sanitizer_posix_libcdep.cc index c28822fb..6032f520 100644 --- a/lib/sanitizer_common/sanitizer_posix_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_posix_libcdep.cc @@ -89,22 +89,6 @@ int internal_isatty(fd_t fd) { return isatty(fd); } -#ifndef SANITIZER_GO -void StackTrace::Unwind(uptr max_depth, uptr pc, uptr bp, uptr stack_top, - uptr stack_bottom, bool fast) { - // Check if fast unwind is available. Fast unwind is the only option on Mac. - if (!SANITIZER_CAN_FAST_UNWIND) - fast = false; - else if (SANITIZER_MAC) - fast = true; - - if (!fast) - SlowUnwindStack(pc, max_depth); - else - FastUnwindStack(pc, bp, stack_top, stack_bottom, max_depth); -} -#endif // SANITIZER_GO - } // namespace __sanitizer #endif -- cgit v1.2.3