commit | 56c3ed854f0a5765ec6777b2beac99893c7e1ccc | [log] [tgz] |
---|---|---|
author | Reid Spencer <rspencer@reidspencer.com> | Mon Dec 13 02:58:51 2004 +0000 |
committer | Reid Spencer <rspencer@reidspencer.com> | Mon Dec 13 02:58:51 2004 +0000 |
tree | 1adb160889b3ced184952ea08a95084e1b3e25b1 | |
parent | 3343be3f2efc0a4907cf5ed99d2218a10ef46345 [diff] [blame] |
Make the size() method const git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18852 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Unix/MappedFile.cpp b/lib/System/Unix/MappedFile.cpp index 1c9622d..36a17e0 100644 --- a/lib/System/Unix/MappedFile.cpp +++ b/lib/System/Unix/MappedFile.cpp
@@ -108,7 +108,7 @@ return base_; } -size_t MappedFile::size() { +size_t MappedFile::size() const { assert(info_ && "MappedFile not initialized"); return info_->sbuf_.st_size; }