From: Reid Spencer Date: Sun, 14 Nov 2004 21:51:36 +0000 (+0000) Subject: Allow explicit closing of the MappedFile, before destruction X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8d2a8c3115a32afb2334bf5cdaa9a361bd24825c;p=oota-llvm.git 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 --- 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 /// @{