diff options
| author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-28 01:17:07 +0000 |
|---|---|---|
| committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-28 01:17:07 +0000 |
| commit | 971e03d74a0f02c17f572619ca11f137011b6c9e (patch) | |
| tree | 506cc1d8008a3ee28b576daf5a46475f83e9162e /llvm/lib/Bytecode/Archive/ArchiveWriter.cpp | |
| parent | df7783516658cef26269c6e936ec59f97984e4a8 (diff) | |
| download | bcm5719-llvm-971e03d74a0f02c17f572619ca11f137011b6c9e.tar.gz bcm5719-llvm-971e03d74a0f02c17f572619ca11f137011b6c9e.zip | |
Properly close mapped files.
llvm-svn: 19863
Diffstat (limited to 'llvm/lib/Bytecode/Archive/ArchiveWriter.cpp')
| -rw-r--r-- | llvm/lib/Bytecode/Archive/ArchiveWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp b/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp index f16376725d0..6b141857e67 100644 --- a/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp +++ b/llvm/lib/Bytecode/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 { |

