llvm.org GIT mirror llvm / 8ef835e
MAP_FILE is the default. We don't need to add it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224144 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 4 years ago
1 changed file(s) with 0 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
417417
418418 int flags = (Mode == readwrite) ? MAP_SHARED : MAP_PRIVATE;
419419 int prot = (Mode == readonly) ? PROT_READ : (PROT_READ | PROT_WRITE);
420 #ifdef MAP_FILE
421 flags |= MAP_FILE;
422 #endif
423420 Mapping = ::mmap(nullptr, Size, prot, flags, FD, Offset);
424421 if (Mapping == MAP_FAILED)
425422 return std::error_code(errno, std::generic_category());