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

Reid Spencer reid at x10sys.com
Mon Oct 4 10:26:37 PDT 2004



Changes in directory llvm/include/llvm/System:

MappedFile.h updated: 1.1 -> 1.2
---
Log message:

Minor corrections suggested by Chris' ever-watchful eye.


---
Diffs of the changes:  (+4 -9)

Index: llvm/include/llvm/System/MappedFile.h
diff -u llvm/include/llvm/System/MappedFile.h:1.1 llvm/include/llvm/System/MappedFile.h:1.2
--- llvm/include/llvm/System/MappedFile.h:1.1	Mon Oct  4 06:08:32 2004
+++ llvm/include/llvm/System/MappedFile.h	Mon Oct  4 12:26:26 2004
@@ -48,16 +48,11 @@
     /// system with the mapping \p options provided.
     /// @throws std::string if an error occurs
     MappedFile(const Path& path, int options = READ_ACCESS)
-      : path_(path), options_(options), base_(0), info_(0) {
-      initialize();
-    }
+      : path_(path), options_(options), base_(0), info_(0) { initialize(); }
 
     /// Destruct a MappedFile and release all memory associated with it.
     /// @throws std::string if an error occurs
-    ~MappedFile() {
-      terminate();
-      path_.clear();
-    }
+    ~MappedFile() { terminate(); }
 
   /// @}
   /// @name Accessors
@@ -123,7 +118,7 @@
     /// map(), base(), or baseChar() members as they may point to invalid
     /// areas of memory after this call.
     /// @throws std::string if an error occurs
-    /// @brief Set a full path from a std::string
+    /// @brief Set the size of the file and memory mapping.
     void size(size_t new_size);
 
   /// @}
@@ -143,7 +138,7 @@
     MappedFileInfo* info_; ///< Platform specific info for the mapping
 
   /// @}
-  /// @name Deprecated
+  /// @name Disabled
   /// @{
   private:
     ///< Disallow assignment






More information about the llvm-commits mailing list