summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-07-11 22:35:40 +0000
committerLeonard Chan <leonardchan@google.com>2019-07-11 22:35:40 +0000
commit5652f35817f07b16f8b3856d594cc42f4d7ee29c (patch)
tree2d2827d336ffa7ca7db5066ad5302252da1ac20e /llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll
parent28550c8680453b81fa00a3b221f003ac467d15c3 (diff)
downloadbcm5719-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/stack-depth-variable-declared-by-user.ll')
-rw-r--r--llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll b/llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll
index 1ad96f82a69..ff14bff1b7f 100644
--- a/llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll
+++ b/llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll
@@ -2,6 +2,8 @@
; user declares `__sancov_lowest_stack` with an unexpected type.
; RUN: not opt < %s -sancov -sanitizer-coverage-level=1 \
; RUN: -sanitizer-coverage-stack-depth -S 2>&1 | FileCheck %s
+; RUN: not opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=1 \
+; RUN: -sanitizer-coverage-stack-depth -S 2>&1 | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
OpenPOWER on IntegriCloud