commit | 35f16dd40bfa0c23748cec78bc04323dc78fd6d3 | [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 | aaf100a650144cbf435210cb42d59686f14f3d97 | |
parent | 15681d988e1301995990cd8beadba4382f840bf3 [diff] [blame] |
Make the size() method const llvm-svn: 18852
diff --git a/llvm/lib/System/Unix/MappedFile.cpp b/llvm/lib/System/Unix/MappedFile.cpp index 1c9622d..36a17e0 100644 --- a/llvm/lib/System/Unix/MappedFile.cpp +++ b/llvm/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; }