summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 02:58:51 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 02:58:51 +0000
commit35f16dd40bfa0c23748cec78bc04323dc78fd6d3 (patch)
treeaaf100a650144cbf435210cb42d59686f14f3d97 /llvm/lib/System/Unix
parent15681d988e1301995990cd8beadba4382f840bf3 (diff)
downloadbcm5719-llvm-35f16dd40bfa0c23748cec78bc04323dc78fd6d3.tar.gz
bcm5719-llvm-35f16dd40bfa0c23748cec78bc04323dc78fd6d3.zip
Make the size() method const
llvm-svn: 18852
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/MappedFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/MappedFile.cpp b/llvm/lib/System/Unix/MappedFile.cpp
index 1c9622d3623..36a17e0f2c4 100644
--- a/llvm/lib/System/Unix/MappedFile.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud