summaryrefslogtreecommitdiff
path: root/lib/Archive/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-28 01:17:07 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-28 01:17:07 +0000
commitd19d89a04ca746056e8258543ba580cbde3f31be (patch)
tree15f439871f8c4fce9210552b4a553c1d80bd62c2 /lib/Archive/ArchiveWriter.cpp
parent097b763ebf5fa5af1856df107d3afaf1855fc8a0 (diff)
Properly close mapped files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive/ArchiveWriter.cpp')
-rw-r--r--lib/Archive/ArchiveWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Archive/ArchiveWriter.cpp b/lib/Archive/ArchiveWriter.cpp
index f16376725d0..6b141857e67 100644
--- a/lib/Archive/ArchiveWriter.cpp
+++ b/lib/Archive/ArchiveWriter.cpp
@@ -303,7 +303,7 @@ Archive::writeMember(
// Close the mapped file if it was opened
if (mFile != 0) {
- mFile->unmap();
+ mFile->close();
delete mFile;
}
}
@@ -442,7 +442,7 @@ Archive::writeToDisk(bool CreateSymbolTable, bool TruncateNames, bool Compress){
// Close up shop
FinalFile.close();
- arch.unmap();
+ arch.close();
TmpArchive.destroyFile();
} else {