summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/lsan/lsan.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/lsan/lsan.h')
-rw-r--r--compiler-rt/lib/lsan/lsan.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/compiler-rt/lib/lsan/lsan.h b/compiler-rt/lib/lsan/lsan.h
index cfaa6c18cc4..049fba2bef8 100644
--- a/compiler-rt/lib/lsan/lsan.h
+++ b/compiler-rt/lib/lsan/lsan.h
@@ -40,28 +40,6 @@ void ReplaceSystemMalloc();
__lsan_init(); \
} while (0)
-// Get the stack trace with the given pc and bp.
-// The pc will be in the position 0 of the resulting stack trace.
-// The bp may refer to the current frame or to the caller's frame.
-ALWAYS_INLINE
-void GetStackTrace(__sanitizer::BufferedStackTrace *stack,
- __sanitizer::uptr max_depth, __sanitizer::uptr pc,
- __sanitizer::uptr bp, void *context, bool fast) {
- uptr stack_top = 0, stack_bottom = 0;
- ThreadContext *t;
- if (__sanitizer::StackTrace::WillUseFastUnwind(fast) &&
- (t = CurrentThreadContext())) {
- stack_top = t->stack_end();
- stack_bottom = t->stack_begin();
- }
- if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) {
- if (StackTrace::WillUseFastUnwind(fast))
- stack->Unwind(max_depth, pc, bp, nullptr, stack_top, stack_bottom, true);
- else
- stack->Unwind(max_depth, pc, 0, context, 0, 0, false);
- }
-}
-
} // namespace __lsan
extern bool lsan_inited;
OpenPOWER on IntegriCloud