diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2020-10-26 14:54:22 -0700 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2020-10-28 15:06:38 -0700 |
commit | 90678f65ae47523586bd34392ed3cd1369cf5e9b (patch) | |
tree | 87427684f86733c9718660daffa8a02233bbf290 /clang/lib/Serialization/ModuleManager.cpp | |
parent | 5b91a6a88bd681f63702116f4a7f28976f4fa848 (diff) | |
download | llvm-90678f65ae47523586bd34392ed3cd1369cf5e9b.zip llvm-90678f65ae47523586bd34392ed3cd1369cf5e9b.tar.gz llvm-90678f65ae47523586bd34392ed3cd1369cf5e9b.tar.bz2 |
[GWP-ASan] Abstract the thread local variables access
In a similar fashion to D87420 for Scudo, this CL introduces a way to
get thread local variables via a platform-specific reserved TLS slot,
since Fuchsia doesn't support ELF TLS from the libc itself.
If needing to use this, a platform will have to define
`GWP_ASAN_HAS_PLATFORM_TLS_SLOT` and provide `gwp_asan_platform_tls_slot.h`
which will define a `uint64_t *getPlatformGwpAsanTlsSlot()` function
that will return the TLS word of storage.
I snuck in a couple of cleanup items as well, moving some static
functions to anonymous namespace for consistency.
Differential Revision: https://reviews.llvm.org/D90195
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions