Make the size() method const

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-12-13 02:58:51 +00:00
parent 3343be3f2e
commit 56c3ed854f
3 changed files with 4 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ void* MappedFile::map() {
return base_;
}
size_t MappedFile::size() {
size_t MappedFile::size() const {
assert(info_ && "MappedFile not initialized");
return info_->sbuf_.st_size;
}

View File

@@ -108,7 +108,7 @@ void* MappedFile::map() {
return base_;
}
size_t MappedFile::size() {
size_t MappedFile::size() const {
assert(info_ && "MappedFile not initialized");
return info_->sbuf_.st_size;
}