From 8d2a8c3115a32afb2334bf5cdaa9a361bd24825c Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 14 Nov 2004 21:51:36 +0000 Subject: [PATCH] Allow explicit closing of the MappedFile, before destruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17759 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/MappedFile.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/System/MappedFile.h b/include/llvm/System/MappedFile.h index 0a3f21b67fb..526d11b4dac 100644 --- a/include/llvm/System/MappedFile.h +++ b/include/llvm/System/MappedFile.h @@ -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 /// @{