From 35f16dd40bfa0c23748cec78bc04323dc78fd6d3 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 13 Dec 2004 02:58:51 +0000 Subject: Make the size() method const llvm-svn: 18852 --- llvm/lib/System/Unix/MappedFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/System/Unix/MappedFile.cpp') 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; } -- cgit v1.2.3