projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
181c6d2
)
MAP_FILE is the default. We don't need to add it.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 12 Dec 2014 19:12:42 +0000
(19:12 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 12 Dec 2014 19:12:42 +0000
(19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224144
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Unix/Path.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Unix/Path.inc
b/lib/Support/Unix/Path.inc
index bd6a605a93dd97472d3b1c2ddc2708016a89ed34..8de94c11dcecb71db94101c02804e916db20bcba 100644
(file)
--- a/
lib/Support/Unix/Path.inc
+++ b/
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());