From 858bc782235c2a261bfc9d491cce976ec60b408d 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 llvm-svn: 17759 --- 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 /// @{