aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorthetruestblue <92476612+thetruestblue@users.noreply.github.com>2024-10-16 21:52:38 -0700
committerGitHub <noreply@github.com>2024-10-16 21:52:38 -0700
commit927af63fddb8e34f23b2974f812156767988ec5f (patch)
tree325cb61c5f9afc38320fc877b76b623eb97909f4 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent81bbe19383797d5daaa5ddd16a47cd6ff44b66e2 (diff)
downloadllvm-927af63fddb8e34f23b2974f812156767988ec5f.zip
llvm-927af63fddb8e34f23b2974f812156767988ec5f.tar.gz
llvm-927af63fddb8e34f23b2974f812156767988ec5f.tar.bz2
[SanitizerCoverage] Add an option to gate the invocation of the tracing callbacks (#108328)
Implement -sanitizer-coverage-gated-trace-callbacks to gate the invocation of the tracing callbacks based on the value of a global variable, which is stored in a specific section. When this option is enabled, the instrumentation will not call into the runtime-provided callbacks for tracing, thus only incurring in a trivial branch without going through a function call. It is up to the runtime to toggle the value of the global variable in order to enable tracing. This option is only supported for trace-pc-guard. Note: will add additional support for trace-cmp in a follow up PR. Patch by Filippo Bigarella rdar://101626834
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions