diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 02:58:51 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 02:58:51 +0000 |
commit | 56c3ed854f0a5765ec6777b2beac99893c7e1ccc (patch) | |
tree | 1adb160889b3ced184952ea08a95084e1b3e25b1 /lib/System/Unix/MappedFile.cpp | |
parent | 3343be3f2efc0a4907cf5ed99d2218a10ef46345 (diff) |
Make the size() method const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/MappedFile.cpp')
-rw-r--r-- | lib/System/Unix/MappedFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Unix/MappedFile.cpp b/lib/System/Unix/MappedFile.cpp index 1c9622d362..36a17e0f2c 100644 --- a/lib/System/Unix/MappedFile.cpp +++ b/lib/System/Unix/MappedFile.cpp @@ -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; } |