aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFModuleDefinition.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2017-07-18 20:31:19 +0000
committerDimitry Andric <dimitry@andric.com>2017-07-18 20:31:19 +0000
commit0c7238b21c5f01152b03f5388baef6612d5e6c49 (patch)
tree9cc0e7a4b66fb2381d09f7a3a6a542289b85ce06 /llvm/lib/Object/COFFModuleDefinition.cpp
parent12149e254304cce9d32737490b8245479b7b38e5 (diff)
downloadllvm-0c7238b21c5f01152b03f5388baef6612d5e6c49.zip
llvm-0c7238b21c5f01152b03f5388baef6612d5e6c49.tar.gz
llvm-0c7238b21c5f01152b03f5388baef6612d5e6c49.tar.bz2
For KMP_PAGE_SIZE, use getpagesize() on Unix, GetSystemInfo() on Windows
Summary: The kmp_os.h header is defining the `PAGE_SIZE` macro unconditionally, even while it is only used directly after its definition, for the Windows implementation of the `KMP_GET_PAGE_SIZE()` macro. On at least FreeBSD, but likely all other BSDs too, this macro conflicts with the one defined in system headers, so remove it, since nothing else uses it. Make all Unixes use `getpagesize()` instead, and use `GetSystemInfo()` for the Windows case. Reviewers: jlpeyton, jcownie, emaste, AndreyChurbanov Reviewed By: AndreyChurbanov Subscribers: AndreyChurbanov, hfinkel, zturner Differential Revision: https://reviews.llvm.org/D35072 llvm-svn: 308355
Diffstat (limited to 'llvm/lib/Object/COFFModuleDefinition.cpp')
0 files changed, 0 insertions, 0 deletions