summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-07-25 20:53:15 +0000
committerLeonard Chan <leonardchan@google.com>2019-07-25 20:53:15 +0000
commit007f674c6a4e47cf3a290c0e2d5ba96483d0f8dc (patch)
tree0c1a41c709a6ca7d1cdc5d15b142a56bb614227f /llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll
parent9294c87282c6cf93ffd522a5b5ff82d9c0d76205 (diff)
downloadbcm5719-llvm-007f674c6a4e47cf3a290c0e2d5ba96483d0f8dc.tar.gz
bcm5719-llvm-007f674c6a4e47cf3a290c0e2d5ba96483d0f8dc.zip
Reland the "[NewPM] Port Sancov" patch from rL365838. No functional
changes were made to the patch since then. -------- [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. llvm-svn: 367053
Diffstat (limited to 'llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll')
-rw-r--r--llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll1
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) {
OpenPOWER on IntegriCloud