[compiler-rt] r308881 - [compiler-rt] Add missing const specifier to MemoryMappedSegment functions
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 07:31:01 PDT 2017
Author: fjricci
Date: Mon Jul 24 07:31:01 2017
New Revision: 308881
URL: http://llvm.org/viewvc/llvm-project?rev=308881&view=rev
Log:
[compiler-rt] Add missing const specifier to MemoryMappedSegment functions
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps.h?rev=308881&r1=308880&r2=308881&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps.h Mon Jul 24 07:31:01 2017
@@ -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;
More information about the llvm-commits
mailing list