diff options
author | Leonard Chan <leonardchan@google.com> | 2019-07-11 22:35:40 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2019-07-11 22:35:40 +0000 |
commit | 5652f35817f07b16f8b3856d594cc42f4d7ee29c (patch) | |
tree | 2d2827d336ffa7ca7db5066ad5302252da1ac20e /llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll | |
parent | 28550c8680453b81fa00a3b221f003ac467d15c3 (diff) | |
download | bcm5719-llvm-5652f35817f07b16f8b3856d594cc42f4d7ee29c.tar.gz bcm5719-llvm-5652f35817f07b16f8b3856d594cc42f4d7ee29c.zip |
[NewPM] Port Sancov
This patch contains a port of SanitizerCoverage to the new pass manager. This one's a bit hefty.
Changes:
- Split SanitizerCoverageModule into 2 SanitizerCoverage for passing over
functions and ModuleSanitizerCoverage for passing over modules.
- ModuleSanitizerCoverage exists for adding 2 module level calls to initialization
functions but only if there's a function that was instrumented by sancov.
- Added legacy and new PM wrapper classes that own instances of the 2 new classes.
- Update llvm tests and add clang tests.
Differential Revision: https://reviews.llvm.org/D62888
llvm-svn: 365838
Diffstat (limited to 'llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll')
-rw-r--r-- | llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll b/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll index 508657a5976..428a7d735c5 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll @@ -1,6 +1,7 @@ ; Test that coverage instrumentation does not lose debug location. ; RUN: opt < %s -sancov -sanitizer-coverage-level=2 -S | FileCheck %s +; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=2 -S | FileCheck %s ; C++ source: ; 1: void foo(int *a) { |