summaryrefslogtreecommitdiff
path: root/lib/ubsan
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-03-01 22:10:49 +0000
committerJulian Lettner <jlettner@apple.com>2019-03-01 22:10:49 +0000
commit194ef3aa7e9c7ffa9fe13527983128673e1e2aed (patch)
tree7b407d8b867834f7d098b8f9e70a4172d2b395cd /lib/ubsan
parent7907e445f2e3e44eb941b693fcd65fd978577e69 (diff)
downloadcompiler-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/ubsan')
-rw-r--r--lib/ubsan/ubsan_diag_standalone.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ubsan/ubsan_diag_standalone.cc b/lib/ubsan/ubsan_diag_standalone.cc
index d2b7d6e69..c22fd1749 100644
--- a/lib/ubsan/ubsan_diag_standalone.cc
+++ b/lib/ubsan/ubsan_diag_standalone.cc
@@ -16,15 +16,15 @@
using namespace __ubsan;
-void __sanitizer::GetStackTrace(BufferedStackTrace *stack, uptr max_depth,
- uptr pc, uptr bp, void *context, bool fast) {
+void __sanitizer::BufferedStackTrace::UnwindImpl(
+ uptr pc, uptr bp, void *context, bool request_fast, u32 max_depth) {
uptr top = 0;
uptr bottom = 0;
- if (StackTrace::WillUseFastUnwind(fast)) {
+ if (StackTrace::WillUseFastUnwind(request_fast)) {
GetThreadStackTopAndBottom(false, &top, &bottom);
- stack->Unwind(max_depth, pc, bp, nullptr, top, bottom, true);
+ Unwind(max_depth, pc, bp, nullptr, top, bottom, true);
} else
- stack->Unwind(max_depth, pc, bp, context, 0, 0, false);
+ Unwind(max_depth, pc, bp, context, 0, 0, false);
}
extern "C" {