[llvm-commits] CVS: llvm/include/llvm/System/MappedFile.h

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



Changes in directory llvm/include/llvm/System:

MappedFile.h updated: 1.4 -> 1.5
---
Log message:

Make the size() method const

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

Index: llvm/include/llvm/System/MappedFile.h
diff -u llvm/include/llvm/System/MappedFile.h:1.4 llvm/include/llvm/System/MappedFile.h:1.5
--- llvm/include/llvm/System/MappedFile.h:1.4	Sun Nov 14 15:51:36 2004
+++ llvm/include/llvm/System/MappedFile.h	Sun Dec 12 20:58:51 2004
@@ -94,7 +94,7 @@
 
     /// This function returns the number of bytes in the file. 
     /// @throws std::string if an error occurs
-    size_t size();
+    size_t size() const;
 
   /// @}
   /// @name Mutators
@@ -137,7 +137,7 @@
     sys::Path path_;       ///< Path to the file.
     int options_;          ///< Options used to create the mapping
     void* base_;           ///< Pointer to the base memory address
-    MappedFileInfo* info_; ///< Platform specific info for the mapping
+    mutable MappedFileInfo* info_; ///< Platform specific info for the mapping
 
   /// @}
   /// @name Disabled






More information about the llvm-commits mailing list