projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f447156
)
Allow explicit closing of the MappedFile, before destruction
author
Reid Spencer
<rspencer@reidspencer.com>
Sun, 14 Nov 2004 21:51:36 +0000
(21:51 +0000)
committer
Reid 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
patch
|
blob
|
history
diff --git
a/include/llvm/System/MappedFile.h
b/include/llvm/System/MappedFile.h
index 0a3f21b67fbda08a94ae0556d5ffb1c822b0a561..526d11b4dac1e55d843143aff6b9aea4c9dae2cd 100644
(file)
--- 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
/// @{