aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-14 21:51:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-14 21:51:36 +0000
commit8d2a8c3115a32afb2334bf5cdaa9a361bd24825c (patch)
tree911da2ed9ced06eb660d0774edac286b958d1df6 /include/llvm/System
parentf44715638b5e77e74e531bd2fed499c42de55997 (diff)
downloadexternal_llvm-8d2a8c3115a32afb2334bf5cdaa9a361bd24825c.zip
external_llvm-8d2a8c3115a32afb2334bf5cdaa9a361bd24825c.tar.gz
external_llvm-8d2a8c3115a32afb2334bf5cdaa9a361bd24825c.tar.bz2
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
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/MappedFile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/System/MappedFile.h b/include/llvm/System/MappedFile.h
index 0a3f21b..526d11b 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
/// @{