aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2020-01-07 13:46:12 -0800
committerSiva Chandra Reddy <sivachandra@google.com>2020-01-24 15:42:28 -0800
commitec62bf2fd3284c9a525011b191c4960fce01dca7 (patch)
tree99d720ff978f2c389ae7ecf070184856f2a4c173 /clang/lib/Basic/SourceManager.cpp
parent96f3ea0d21b48ca088355db10d4d1a2e9bc9f884 (diff)
downloadllvm-ec62bf2fd3284c9a525011b191c4960fce01dca7.zip
llvm-ec62bf2fd3284c9a525011b191c4960fce01dca7.tar.gz
llvm-ec62bf2fd3284c9a525011b191c4960fce01dca7.tar.bz2
[libc] Move the implementation of mmap and munmap into a linux specific area.
This allows us to get rid of the PAGE_SIZE macro and use EXEC_PAGESIZE from linux/param.h. Few other points about this change: 1. The linux syscall functions have been moved into a linux specific area instead of src/unistd/syscall.h. The Linux syscall function from unistd.h is a public vararg function. What we have currently are linux speciif internal overloaded C++ functions. So, moving them to a Linux only area is more meaningful. 2. The implementations of mmap and munmap are now in a 'linux' directory within src/sys/mman. The idea here is that platform specific implementations will live in a platform specific subdirectories like these. Infrastructure common to a platform will live in the platform's config directory. For example, the linux syscall implementations live in config/linux. Reviewers: abrachet Tags: #libc-project Differential Revision: https://reviews.llvm.org/D73302
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions