aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorFabio D'Urso <fdurso@google.com>2024-10-03 18:45:23 +0200
committerGitHub <noreply@github.com>2024-10-03 18:45:23 +0200
commit2396c469994e094f7a146f4fa9f29990904ed73b (patch)
tree898d062e2a874f51874c0b9e91367724ad52443a /clang/lib/CodeGen/BackendUtil.cpp
parentef66936df4e4746c4af0f224796e0070b0f14138 (diff)
downloadllvm-2396c469994e094f7a146f4fa9f29990904ed73b.zip
llvm-2396c469994e094f7a146f4fa9f29990904ed73b.tar.gz
llvm-2396c469994e094f7a146f4fa9f29990904ed73b.tar.bz2
[libc] Add malloc.h header defining mallopt (#110908)
This patch adds the malloc.h header, declaring Scudo's mallopt entrypoint when built LLVM_LIBC_INCLUDE_SCUDO, as well as two constants that can be passed to it (M_PURGE and M_PURGE_ALL). Due to limitations of the current build system, only the declaration of mallopt is gated by LLVM_LIBC_INCLUDE_SCUDO, and the two new constants are defined irrespectively of it. We may need to refine this in the future. Note that some allocators other than Scudo may offer a mallopt implementation too (e.g. man 3 mallopt), albeit with different supported input values. This patch only supports the specific case of LLVM_LIBC_INCLUDE_SCUDO.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions