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

Reid Spencer reid at x10sys.com
Sun Nov 14 13:52:14 PST 2004



Changes in directory llvm/include/llvm/System:

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

Allow explicit closing of the MappedFile, before destruction

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

Index: llvm/include/llvm/System/MappedFile.h
diff -u llvm/include/llvm/System/MappedFile.h:1.3 llvm/include/llvm/System/MappedFile.h:1.4
--- llvm/include/llvm/System/MappedFile.h:1.3	Wed Oct 27 11:14:51 2004
+++ llvm/include/llvm/System/MappedFile.h	Sun Nov 14 15:51:36 2004
@@ -121,6 +121,8 @@
     /// @brief Set the size of the file and memory mapping.
     void size(size_t new_size);
 
+    void close() { terminate(); }
+
   /// @}
   /// @name Implementation
   /// @{






More information about the llvm-commits mailing list