summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-11-11 22:14:37 +0000
committerKostya Serebryany <kcc@google.com>2014-11-11 22:14:37 +0000
commit29a18dcbc531a0a30c9cabbb4e02b306d95d4f9b (patch)
tree76432df6f4f85f474930d0f27ebd06ad5571c997 /llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
parenteb63c5e28c29fdc15370caae51b35f089a584aff (diff)
downloadbcm5719-llvm-29a18dcbc531a0a30c9cabbb4e02b306d95d4f9b.tar.gz
bcm5719-llvm-29a18dcbc531a0a30c9cabbb4e02b306d95d4f9b.zip
Move asan-coverage into a separate phase.
Summary: This change moves asan-coverage instrumentation into a separate Module pass. The other part of the change in clang introduces a new flag -fsanitize-coverage=N. Another small patch will update tests in compiler-rt. With this patch no functionality change is expected except for the flag name. The following changes will make the coverage instrumentation work with tsan/msan Test Plan: Run regression tests, chromium. Reviewers: nlewycky, samsonov Reviewed By: nlewycky, samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6152 llvm-svn: 221718
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/Instrumentation.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/Instrumentation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/Instrumentation.cpp b/llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
index ac1dd43c3ae..8e953671572 100644
--- a/llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
@@ -27,6 +27,7 @@ void llvm::initializeInstrumentation(PassRegistry &Registry) {
initializeGCOVProfilerPass(Registry);
initializeMemorySanitizerPass(Registry);
initializeThreadSanitizerPass(Registry);
+ initializeSanitizerCoverageModulePass(Registry);
initializeDataFlowSanitizerPass(Registry);
}
OpenPOWER on IntegriCloud