summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/SanitizerCoverage/coff-used-ctor.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/coff-used-ctor.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/coff-used-ctor.ll')
-rw-r--r--llvm/test/Instrumentation/SanitizerCoverage/coff-used-ctor.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/coff-used-ctor.ll b/llvm/test/Instrumentation/SanitizerCoverage/coff-used-ctor.ll
index fd12eed8e36..f412d2f237d 100644
--- a/llvm/test/Instrumentation/SanitizerCoverage/coff-used-ctor.ll
+++ b/llvm/test/Instrumentation/SanitizerCoverage/coff-used-ctor.ll
@@ -1,5 +1,6 @@
; Checks that sancov.module_ctor is marked used.
; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -sanitizer-coverage-inline-8bit-counters=1 -sanitizer-coverage-pc-table=1 -S | FileCheck %s
+; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-8bit-counters=1 -sanitizer-coverage-pc-table=1 -S | FileCheck %s
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.14.26433"
@@ -8,4 +9,4 @@ entry:
ret void
}
-; CHECK: @llvm.used = appending global {{.*}} @sancov.module_ctor \ No newline at end of file
+; CHECK: @llvm.used = appending global {{.*}} @sancov.module_ctor
OpenPOWER on IntegriCloud