https://reviews.llvm.org/D63616 added -fsanitize-coverage-whitelist
and -fsanitize-coverage-blacklist for clang.
However, it was done only for legacy pass manager.
This patch enable it for new pass manager as well.
Paths
| Differential D79653
[sanitizer] Enable whitelist/blacklist in new PM ClosedPublic Authored by jsji on May 8 2020, 3:09 PM.
Details Summary https://reviews.llvm.org/D63616 added -fsanitize-coverage-whitelist However, it was done only for legacy pass manager.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptMay 8 2020, 3:09 PM Herald added subscribers: llvm-commits, Restricted Project, cfe-commits, hiraditya. · View Herald Transcript This revision is now accepted and ready to land.May 9 2020, 12:53 AM Closed by commit rGa72b9dfd45cd: [sanitizer] Enable whitelist/blacklist in new PM (authored by jsji). · Explain WhyMay 9 2020, 8:44 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 263050 clang/lib/CodeGen/BackendUtil.cpp
compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_whitelist_blacklist.cpp
llvm/include/llvm/Transforms/Instrumentation/SanitizerCoverage.h
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
|