diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-10-12 12:23:00 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-10-12 12:23:00 +0000 |
| commit | c129e65661c2af63ea114bc0b555e37f219d3249 (patch) | |
| tree | bb775af8ce674e83d8c9bb7e227080c5b98fd703 /compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc | |
| parent | f016258068fbcb7ac92fa1d1172ed0ab3f904e15 (diff) | |
| download | bcm5719-llvm-c129e65661c2af63ea114bc0b555e37f219d3249.tar.gz bcm5719-llvm-c129e65661c2af63ea114bc0b555e37f219d3249.zip | |
[Sanitizer] Turn GetStackTrace() into StackTrace::Unwind()
llvm-svn: 192533
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc index 24ba3caf5d7..c28822fb492 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc @@ -90,8 +90,8 @@ int internal_isatty(fd_t fd) { } #ifndef SANITIZER_GO -void GetStackTrace(StackTrace *stack, uptr max_s, uptr pc, uptr bp, - uptr stack_top, uptr stack_bottom, bool fast) { +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; @@ -99,9 +99,9 @@ void GetStackTrace(StackTrace *stack, uptr max_s, uptr pc, uptr bp, fast = true; if (!fast) - stack->SlowUnwindStack(pc, max_s); + SlowUnwindStack(pc, max_depth); else - stack->FastUnwindStack(pc, bp, stack_top, stack_bottom, max_s); + FastUnwindStack(pc, bp, stack_top, stack_bottom, max_depth); } #endif // SANITIZER_GO |

