[compiler-rt] Add missing const specifier to MemoryMappedSegment functions

llvm-svn: 308881
This commit is contained in:
Francis Ricci 2017-07-24 14:31:01 +00:00
parent e5cc2fcc90
commit 4f82717643
1 changed files with 4 additions and 4 deletions

View File

@ -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;