diff options
author | Kamil Rytarowski <n54@gmx.com> | 2019-09-12 18:57:58 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2019-09-12 18:57:58 +0000 |
commit | 02519fc7a6f8c528f67975a9f78ce64dabf402b4 (patch) | |
tree | 9db3884edc861087ab1b6c02dc91680193b60039 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | d2e0f207aa5325a27aeb301e5d13e02809e0c26e (diff) | |
download | llvm-02519fc7a6f8c528f67975a9f78ce64dabf402b4.zip llvm-02519fc7a6f8c528f67975a9f78ce64dabf402b4.tar.gz llvm-02519fc7a6f8c528f67975a9f78ce64dabf402b4.tar.bz2 |
Add getauxval() compat for NetBSD
Summary:
getauxval() is not available on NetBSD and there is no a direct equivalent.
Add a function that implements the same semantics with NetBSD internals.
Reorder the GetPageSize() functions to prefer the sysctl approach for NetBSD.
It no longer makes a difference which approach is better. Avoid changing
conditional code path.
Reviewers: vitalybuka, dvyukov, mgorny, joerg
Reviewed By: vitalybuka
Subscribers: llvm-commits, #sanitizers
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D67329
llvm-svn: 371758
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions