diff options
author | Julian Lettner <jlettner@apple.com> | 2019-03-01 22:10:49 +0000 |
---|---|---|
committer | Julian Lettner <jlettner@apple.com> | 2019-03-01 22:10:49 +0000 |
commit | 194ef3aa7e9c7ffa9fe13527983128673e1e2aed (patch) | |
tree | 7b407d8b867834f7d098b8f9e70a4172d2b395cd /lib/msan | |
parent | 7907e445f2e3e44eb941b693fcd65fd978577e69 (diff) | |
download | compiler-rt-194ef3aa7e9c7ffa9fe13527983128673e1e2aed.tar.gz |
[NFC][Sanitizer] Make GetStackTrace a private method of BufferedStackTrace
GetStackTrace is a implementation detail of BufferedStackTrace. Make it
a private method.
Reviewed By: vitalybuka
Differential-Revision: https://reviews.llvm.org/D58753
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@355232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan')
-rw-r--r-- | lib/msan/msan.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/msan/msan.cc b/lib/msan/msan.cc index 1ecbcd44b..c375afb77 100644 --- a/lib/msan/msan.cc +++ b/lib/msan/msan.cc @@ -301,21 +301,19 @@ u32 ChainOrigin(u32 id, StackTrace *stack) { } // namespace __msan -void __sanitizer::GetStackTrace(BufferedStackTrace *stack, uptr max_s, uptr pc, - uptr bp, void *context, - bool request_fast_unwind) { +void __sanitizer::BufferedStackTrace::UnwindImpl( + uptr pc, uptr bp, void *context, bool request_fast, u32 max_depth) { using namespace __msan; MsanThread *t = GetCurrentThread(); - if (!t || !StackTrace::WillUseFastUnwind(request_fast_unwind)) { + if (!t || !StackTrace::WillUseFastUnwind(request_fast)) { // Block reports from our interceptors during _Unwind_Backtrace. SymbolizerScope sym_scope; - return stack->Unwind(max_s, pc, bp, context, 0, 0, false); + return Unwind(max_depth, pc, bp, context, 0, 0, false); } - if (StackTrace::WillUseFastUnwind(request_fast_unwind)) - stack->Unwind(max_s, pc, bp, nullptr, t->stack_top(), t->stack_bottom(), - true); + if (StackTrace::WillUseFastUnwind(request_fast)) + Unwind(max_depth, pc, bp, nullptr, t->stack_top(), t->stack_bottom(), true); else - stack->Unwind(max_s, pc, 0, context, 0, 0, false); + Unwind(max_depth, pc, 0, context, 0, 0, false); } // Interface. |