aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail@igalia.com>2023-08-03 09:30:36 -0300
committerMikhail R. Gadelha <mikhail@igalia.com>2023-08-03 10:08:01 -0300
commitc9783d2bda95ec6921b3ca2df930b17af3a6c7b1 (patch)
treeb9b4a9ac4b7412f46b9ffef65467d8af5d79b3b6 /clang/lib/Frontend/CompilerInvocation.cpp
parent1b5a3c90ccf3eb027220ff06cfce5d26612b57dc (diff)
downloadllvm-c9783d2bda95ec6921b3ca2df930b17af3a6c7b1.zip
llvm-c9783d2bda95ec6921b3ca2df930b17af3a6c7b1.tar.gz
llvm-c9783d2bda95ec6921b3ca2df930b17af3a6c7b1.tar.bz2
[libc] Add support to compile some syscalls on 32 bit platform
This patch adds a bunch of ifdefs to handle the 32 bit versions of some syscalls, which often only append a 64 to the name of the syscall (with exception of SYS_lseek -> SYS_llseek and SYS_futex -> SYS_futex_time64) This patch also tries to handle cases where wait4 is not available (as in riscv32): to implement wait, wait4 and waitpid when wait4 is not available, we check for alternative wait calls and ultimately rely on waitid to implement them all. In riscv32, only waitid is available, so we need it to support this platform. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D148371
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions