From cb9cf0f907a6aa23eee35d5a2cbfa9fea3166393 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Thu, 27 Sep 2012 13:21:08 +0000 Subject: [PATCH] Add a missing const qualifier. llvm-svn: 164773 --- compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc | 2 +- compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc index d396d78..30a3ef3 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc @@ -36,7 +36,7 @@ static uptr patch_pc(uptr pc) { return pc - 1; } -void StackTrace::PrintStack(uptr *addr, uptr size, +void StackTrace::PrintStack(const uptr *addr, uptr size, bool symbolize, const char *strip_file_prefix, SymbolizeCallback symbolize_callback ) { MemoryMappingLayout proc_maps; diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h index 5d15a61..b823a7e 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h @@ -25,7 +25,7 @@ struct StackTrace { uptr size; uptr max_size; uptr trace[kStackTraceMax]; - static void PrintStack(uptr *addr, uptr size, + static void PrintStack(const uptr *addr, uptr size, bool symbolize, const char *strip_file_prefix, SymbolizeCallback symbolize_callback); void CopyTo(uptr *dst, uptr dst_size) { -- 2.7.4