diff options
| author | Francis Ricci <francisjricci@gmail.com> | 2017-07-24 14:31:01 +0000 |
|---|---|---|
| committer | Francis Ricci <francisjricci@gmail.com> | 2017-07-24 14:31:01 +0000 |
| commit | 4f82717643fe4fc11f87649130ee8c39c083730b (patch) | |
| tree | 7987d3f353d82e791b6348cdd4162bf456ed7c6e | |
| parent | e5cc2fcc9037b5eab7cb5250915002171f41d137 (diff) | |
| download | bcm5719-llvm-4f82717643fe4fc11f87649130ee8c39c083730b.tar.gz bcm5719-llvm-4f82717643fe4fc11f87649130ee8c39c083730b.zip | |
[compiler-rt] Add missing const specifier to MemoryMappedSegment functions
llvm-svn: 308881
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h index 7e79974542d..539a53bc3ed 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h +++ b/compiler-rt/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; |

