aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2020-08-22 15:25:18 +0200
committerDimitry Andric <dimitry@andric.com>2020-08-24 22:31:56 +0200
commitcde8f4c164a27670ebe60a1969d486393336d778 (patch)
tree61f89461b38007ad2f649b9d563a23a45e0006b0 /llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
parentfce44ff5da4eba4b781d73d72a18903215962091 (diff)
downloadllvm-cde8f4c164a27670ebe60a1969d486393336d778.zip
llvm-cde8f4c164a27670ebe60a1969d486393336d778.tar.gz
llvm-cde8f4c164a27670ebe60a1969d486393336d778.tar.bz2
Move special va_list handling to kmp_os.h
Instead of copying and pasting the same `#ifdef` expressions in multiple places, define a type and a pair of macros in `kmp_os.h`, to handle whether `va_list` is pointer-like or not: * `kmp_va_list` is the type to use for `__kmp_fork_call()` * `kmp_va_deref()` dereferences a `va_list`, if necessary * `kmp_va_addr_of()` takes the address of a `va_list`, if necessary Also add FreeBSD to the list of OSes that has a non pointer-like va_list. This can now be easily extended to other OSes too. Reviewed By: AndreyChurbanov Differential Revision: https://reviews.llvm.org/D86397
Diffstat (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp')
0 files changed, 0 insertions, 0 deletions