[llvm-commits] CVS: llvm/lib/Bytecode/Archive/Archive.cpp ArchiveWriter.cpp
Jeff Cohen
jeffc at jolt-lang.org
Thu Jan 27 17:17:18 PST 2005
Changes in directory llvm/lib/Bytecode/Archive:
Archive.cpp updated: 1.5 -> 1.6
ArchiveWriter.cpp updated: 1.14 -> 1.15
---
Log message:
Properly close mapped files.
---
Diffs of the changes: (+3 -3)
Archive.cpp | 2 +-
ArchiveWriter.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Bytecode/Archive/Archive.cpp
diff -u llvm/lib/Bytecode/Archive/Archive.cpp:1.5 llvm/lib/Bytecode/Archive/Archive.cpp:1.6
--- llvm/lib/Bytecode/Archive/Archive.cpp:1.5 Fri Dec 10 18:14:15 2004
+++ llvm/lib/Bytecode/Archive/Archive.cpp Thu Jan 27 19:17:07 2005
@@ -143,7 +143,7 @@
Archive::~Archive() {
// Shutdown the file mapping
if (mapfile) {
- mapfile->unmap();
+ mapfile->close();
delete mapfile;
}
// Delete any ModuleProviders and ArchiveMember's we've allocated as a result
Index: llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
diff -u llvm/lib/Bytecode/Archive/ArchiveWriter.cpp:1.14 llvm/lib/Bytecode/Archive/ArchiveWriter.cpp:1.15
--- llvm/lib/Bytecode/Archive/ArchiveWriter.cpp:1.14 Sat Jan 22 11:36:16 2005
+++ llvm/lib/Bytecode/Archive/ArchiveWriter.cpp Thu Jan 27 19:17:07 2005
@@ -303,7 +303,7 @@
// Close the mapped file if it was opened
if (mFile != 0) {
- mFile->unmap();
+ mFile->close();
delete mFile;
}
}
@@ -442,7 +442,7 @@
// Close up shop
FinalFile.close();
- arch.unmap();
+ arch.close();
TmpArchive.destroyFile();
} else {
More information about the llvm-commits
mailing list