aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/CompilationDatabaseTest.cpp
diff options
context:
space:
mode:
authorJulian Lettner <julian.lettner@apple.com>2021-03-23 19:22:12 -0700
committerJulian Lettner <julian.lettner@apple.com>2021-03-24 12:38:39 -0700
commit26e0fb88a30ad1ab96f66969f4d6da3e71c697b1 (patch)
treefb3786de6f1ebdf27746c582ccf517e8854c4bee /clang/unittests/Tooling/CompilationDatabaseTest.cpp
parent80f6c99a78ac1d98ca02b1dd8ec9647c2841ea5f (diff)
downloadllvm-26e0fb88a30ad1ab96f66969f4d6da3e71c697b1.zip
llvm-26e0fb88a30ad1ab96f66969f4d6da3e71c697b1.tar.gz
llvm-26e0fb88a30ad1ab96f66969f4d6da3e71c697b1.tar.bz2
[TSan] Support initialize/finalize hooks in dynamic libraries
Make TSan runtime initialization and finalization hooks work even if these hooks are not built in the main executable. When these hooks are defined in another library that is not directly linked against the TSan runtime (e.g., Swift runtime) we cannot rely on the "strong-def overriding weak-def" mechanics and have to look them up via `dlsym()`. Let's also define hooks that are easier to use from C-only code: ``` extern "C" void __tsan_on_initialize(); extern "C" int __tsan_on_finalize(int failed); ``` For now, these will call through to the old hooks. Eventually, we want to adopt the new hooks downstream and remove the old ones. This is part of the effort to support Swift Tasks (async/await and actors) in TSan. rdar://74256720 Reviewed By: vitalybuka, delcypher Differential Revision: https://reviews.llvm.org/D98810
Diffstat (limited to 'clang/unittests/Tooling/CompilationDatabaseTest.cpp')
0 files changed, 0 insertions, 0 deletions