summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2012-09-27 13:21:08 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2012-09-27 13:21:08 +0000
commitcb9cf0f907a6aa23eee35d5a2cbfa9fea3166393 (patch)
tree556869d2d97d3b52eb7b816a0096b1e239a898b2 /compiler-rt/lib/sanitizer_common
parentf7f616ba66f49ecbac6e0ddf75f4800acc88a82d (diff)
downloadbcm5719-llvm-cb9cf0f907a6aa23eee35d5a2cbfa9fea3166393.tar.gz
bcm5719-llvm-cb9cf0f907a6aa23eee35d5a2cbfa9fea3166393.zip
Add a missing const qualifier.
llvm-svn: 164773
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc2
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h2
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 d396d78c9a3..30a3ef3bd9e 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 5d15a610e7a..b823a7e0d85 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) {
OpenPOWER on IntegriCloud