Allow explicit closing of the MappedFile, before destruction
authorReid Spencer <rspencer@reidspencer.com>
Sun, 14 Nov 2004 21:51:36 +0000 (21:51 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 14 Nov 2004 21:51:36 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17759 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/System/MappedFile.h

index 0a3f21b67fbda08a94ae0556d5ffb1c822b0a561..526d11b4dac1e55d843143aff6b9aea4c9dae2cd 100644 (file)
@@ -121,6 +121,8 @@ namespace sys {
     /// @brief Set the size of the file and memory mapping.
     void size(size_t new_size);
 
+    void close() { terminate(); }
+
   /// @}
   /// @name Implementation
   /// @{