aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-11-09 07:53:06 +0000
committerVitaly Buka <vitalybuka@google.com>2017-11-09 07:53:06 +0000
commit66f32fc4311bf817d195a4133c692a7bd0e71b5e (patch)
treee00ad3d2ea4e91a7e48b82e7d491d0e3001e3c04 /compiler-rt/lib/lsan/lsan.h
parent[msan] Add context argument into GetStackTrace (diff)
downloadllvm-project-66f32fc4311bf817d195a4133c692a7bd0e71b5e.tar.gz
llvm-project-66f32fc4311bf817d195a4133c692a7bd0e71b5e.tar.bz2
llvm-project-66f32fc4311bf817d195a4133c692a7bd0e71b5e.zip
[sanitizers] Rename GetStackTraceWithPcBpAndContext
Name does not need to enumerate arguments. llvm-svn: 317774
Diffstat (limited to 'compiler-rt/lib/lsan/lsan.h')
-rw-r--r--compiler-rt/lib/lsan/lsan.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/compiler-rt/lib/lsan/lsan.h b/compiler-rt/lib/lsan/lsan.h
index 08794e9ea436..43c41653b463 100644
--- a/compiler-rt/lib/lsan/lsan.h
+++ b/compiler-rt/lib/lsan/lsan.h
@@ -18,9 +18,8 @@
#define GET_STACK_TRACE(max_size, fast) \
__sanitizer::BufferedStackTrace stack; \
- GetStackTraceWithPcBpAndContext(&stack, max_size, \
- StackTrace::GetCurrentPc(), \
- GET_CURRENT_FRAME(), nullptr, fast);
+ GetStackTrace(&stack, max_size, StackTrace::GetCurrentPc(), \
+ GET_CURRENT_FRAME(), nullptr, fast);
#define GET_STACK_TRACE_FATAL \
GET_STACK_TRACE(kStackTraceMax, common_flags()->fast_unwind_on_fatal)
@@ -46,10 +45,9 @@ void ReplaceSystemMalloc();
// 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 GetStackTraceWithPcBpAndContext(__sanitizer::BufferedStackTrace *stack,
- __sanitizer::uptr max_depth,
- __sanitizer::uptr pc, __sanitizer::uptr bp,
- void *context, bool fast) {
+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 (fast && (t = CurrentThreadContext())) {