diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-01 03:10:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-01 03:10:22 +0000 |
commit | b342b7c6e3ec749fc5f94eb878d2ce7a2bf0f19e (patch) | |
tree | 7ad9a631dd43e31b57f7e0910fdc78d47eae484f /lib/Support | |
parent | fbdf87025c6ace687768e247860004373c6401e3 (diff) | |
download | external_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/Support')
-rw-r--r-- | lib/Support/FileUtilities.cpp | 4 | ||||
-rw-r--r-- | lib/Support/MemoryBuffer.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index cde08d1..8cca9d9 100644 --- a/lib/Support/FileUtilities.cpp +++ b/lib/Support/FileUtilities.cpp @@ -192,10 +192,10 @@ int llvm::DiffFilesWithTolerance(const sys::PathWithStatus &FileA, // Now its safe to mmap the files into memory becasue both files // have a non-zero size. sys::MappedFile F1; - if (F1.open(FileA, sys::MappedFile::READ_ACCESS, Error)) + if (F1.open(FileA, Error)) return 2; sys::MappedFile F2; - if (F2.open(FileB, sys::MappedFile::READ_ACCESS, Error)) + if (F2.open(FileB, Error)) return 2; if (!F1.map(Error)) return 2; diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index 4d26d38..8cea07f 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/lib/Support/MemoryBuffer.cpp @@ -159,7 +159,7 @@ bool MemoryBufferMMapFile::open(const sys::Path &Filename, std::string *ErrStr) { // FIXME: This does an extra stat syscall to figure out the size, but we // already know the size! - bool Failure = File.open(Filename, sys::MappedFile::READ_ACCESS, ErrStr); + bool Failure = File.open(Filename, ErrStr); if (Failure) return true; if (!File.map(ErrStr)) |