aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Archive/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-01 03:10:22 +0000
committerChris Lattner <sabre@nondot.org>2008-04-01 03:10:22 +0000
commitb342b7c6e3ec749fc5f94eb878d2ce7a2bf0f19e (patch)
tree7ad9a631dd43e31b57f7e0910fdc78d47eae484f /lib/Archive/ArchiveWriter.cpp
parentfbdf87025c6ace687768e247860004373c6401e3 (diff)
downloadexternal_llvm-b342b7c6e3ec749fc5f94eb878d2ce7a2bf0f19e.zip
external_llvm-b342b7c6e3ec749fc5f94eb878d2ce7a2bf0f19e.tar.gz
external_llvm-b342b7c6e3ec749fc5f94eb878d2ce7a2bf0f19e.tar.bz2
Remove MappedFile support for mapping files for write and exec
and shared. This complicates the design, is not used, and probably doesn't even work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49022 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 c73e170..6a71026 100644
--- a/lib/Archive/ArchiveWriter.cpp
+++ b/lib/Archive/ArchiveWriter.cpp
@@ -212,7 +212,7 @@ Archive::writeMember(
sys::MappedFile* mFile = 0;
if (!data) {
mFile = new sys::MappedFile();
- if (mFile->open(member.getPath(), sys::MappedFile::READ_ACCESS, ErrMsg))
+ if (mFile->open(member.getPath(), ErrMsg))
return true;
if (!(data = (const char*) mFile->map(ErrMsg)))
return true;
@@ -411,7 +411,7 @@ Archive::writeToDisk(bool CreateSymbolTable, bool TruncateNames, bool Compress,
// Map in the archive we just wrote.
sys::MappedFile arch;
- if (arch.open(TmpArchive, sys::MappedFile::READ_ACCESS, ErrMsg))
+ if (arch.open(TmpArchive, ErrMsg))
return true;
const char* base;
if (!(base = (const char*) arch.map(ErrMsg)))