aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/FileUtilities.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
commitbdbd2d710c665bcdf31cbed4b44cf3f94ba746e7 (patch)
tree7ad9a631dd43e31b57f7e0910fdc78d47eae484f /lib/Support/FileUtilities.cpp
parent558755ce1af80a44e9d5f399584e9b2112583796 (diff)
downloadexternal_llvm-bdbd2d710c665bcdf31cbed4b44cf3f94ba746e7.zip
external_llvm-bdbd2d710c665bcdf31cbed4b44cf3f94ba746e7.tar.gz
external_llvm-bdbd2d710c665bcdf31cbed4b44cf3f94ba746e7.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/FileUtilities.cpp')
-rw-r--r--lib/Support/FileUtilities.cpp4
1 files changed, 2 insertions, 2 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;