summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_procmaps.h
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-07-24 14:31:01 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-07-24 14:31:01 +0000
commit614a50c1049b7616fe968def766b79713c12f64e (patch)
treee66d272c7f300b4cc4a8457e5184afaf51eeb07a /lib/sanitizer_common/sanitizer_procmaps.h
parentf2d5726e3687bc8aa439e22cbd5f719a0a9c6299 (diff)
[compiler-rt] Add missing const specifier to MemoryMappedSegment functions
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@308881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_procmaps.h')
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_procmaps.h b/lib/sanitizer_common/sanitizer_procmaps.h
index 7e7997454..539a53bc3 100644
--- a/lib/sanitizer_common/sanitizer_procmaps.h
+++ b/lib/sanitizer_common/sanitizer_procmaps.h
@@ -42,10 +42,10 @@ struct MemoryMappedSegment {
: filename(buff), filename_size(size) {}
~MemoryMappedSegment() {}
- bool IsReadable() { return protection & kProtectionRead; }
- bool IsWritable() { return protection & kProtectionWrite; }
- bool IsExecutable() { return protection & kProtectionExecute; }
- bool IsShared() { return protection & kProtectionShared; }
+ bool IsReadable() const { return protection & kProtectionRead; }
+ bool IsWritable() const { return protection & kProtectionWrite; }
+ bool IsExecutable() const { return protection & kProtectionExecute; }
+ bool IsShared() const { return protection & kProtectionShared; }
uptr start;
uptr end;