[llvm-commits] CVS: llvm/lib/System/Unix/MappedFile.cpp

Reid Spencer reid at x10sys.com
Sun Dec 12 18:59:02 PST 2004



Changes in directory llvm/lib/System/Unix:

MappedFile.cpp updated: 1.7 -> 1.8
---
Log message:

Make the size() method const

---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/System/Unix/MappedFile.cpp
diff -u llvm/lib/System/Unix/MappedFile.cpp:1.7 llvm/lib/System/Unix/MappedFile.cpp:1.8
--- llvm/lib/System/Unix/MappedFile.cpp:1.7	Fri Dec 10 18:14:15 2004
+++ llvm/lib/System/Unix/MappedFile.cpp	Sun Dec 12 20:58:51 2004
@@ -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;
 }






More information about the llvm-commits mailing list