summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-12 19:12:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-12 19:12:42 +0000
commit6de938b002237cf5cfab2ee666543a8b2e9ac769 (patch)
tree612761c977d45ca199181042744c323555f7f0c0 /llvm/lib/Support
parent987ed3ce7c9dc2bdee03bf50ae81e4c55cf345e3 (diff)
downloadbcm5719-llvm-6de938b002237cf5cfab2ee666543a8b2e9ac769.tar.gz
bcm5719-llvm-6de938b002237cf5cfab2ee666543a8b2e9ac769.zip
MAP_FILE is the default. We don't need to add it.
llvm-svn: 224144
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Unix/Path.inc3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index bd6a605a93d..8de94c11dce 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -418,9 +418,6 @@ std::error_code mapped_file_region::init(int FD, uint64_t Offset,
int flags = (Mode == readwrite) ? MAP_SHARED : MAP_PRIVATE;
int prot = (Mode == readonly) ? PROT_READ : (PROT_READ | PROT_WRITE);
-#ifdef MAP_FILE
- flags |= MAP_FILE;
-#endif
Mapping = ::mmap(nullptr, Size, prot, flags, FD, Offset);
if (Mapping == MAP_FAILED)
return std::error_code(errno, std::generic_category());
OpenPOWER on IntegriCloud