summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit62385ba3a033b24acca65e818d442f7500cba2f8 (patch)
tree75f44ace871c30b5fda7d1f95f633886c305633f /llvm/lib/Support/FileUtilities.cpp
parentf5b0b76d28bbd763ddef73e4ca24f27a836a91dd (diff)
downloadbcm5719-llvm-62385ba3a033b24acca65e818d442f7500cba2f8.tar.gz
bcm5719-llvm-62385ba3a033b24acca65e818d442f7500cba2f8.zip
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. llvm-svn: 49022
Diffstat (limited to 'llvm/lib/Support/FileUtilities.cpp')
-rw-r--r--llvm/lib/Support/FileUtilities.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp
index cde08d188ca..8cca9d96d9f 100644
--- a/llvm/lib/Support/FileUtilities.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud