summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/code-coverage.c
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-01-09 22:03:47 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-01-09 22:03:47 +0000
commit7a4f7f56e5a5d7d70daf6fa50f0e752fbd0b9776 (patch)
tree5f2d1a257d9dd1684f8208677a9a516bfff7218a /clang/test/CodeGen/code-coverage.c
parentabdea268c1ff58f159e3aaa59fb7ccc56c316004 (diff)
downloadbcm5719-llvm-7a4f7f56e5a5d7d70daf6fa50f0e752fbd0b9776.tar.gz
bcm5719-llvm-7a4f7f56e5a5d7d70daf6fa50f0e752fbd0b9776.zip
Wire up GCOV to the new pass manager
GCOV in the old pass manager also strips debug info (if debug info is disabled/only produced for profiling anyway) after the GCOV pass runs. I think the strip pass hasn't been ported to the new pass manager, so it might take me a little while to wire that up. llvm-svn: 322126
Diffstat (limited to 'clang/test/CodeGen/code-coverage.c')
-rw-r--r--clang/test/CodeGen/code-coverage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/CodeGen/code-coverage.c b/clang/test/CodeGen/code-coverage.c
index 80307f49ef3..9d4f55862ee 100644
--- a/clang/test/CodeGen/code-coverage.c
+++ b/clang/test/CodeGen/code-coverage.c
@@ -2,7 +2,10 @@
// RUN: %clang_cc1 -emit-llvm -disable-red-zone -femit-coverage-data -coverage-no-function-names-in-data %s -o - | FileCheck %s --check-prefix WITHOUTNAMES
// RUN: %clang_cc1 -emit-llvm -disable-red-zone -femit-coverage-data -coverage-notes-file=aaa.gcno -coverage-data-file=bbb.gcda -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 %s -o - | FileCheck %s --check-prefix GCOV_FILE_INFO
-// <rdar://problem/12843084>
+// RUN: %clang_cc1 -emit-llvm-bc -o /dev/null -fexperimental-new-pass-manager -fdebug-pass-manager -femit-coverage-data %s 2>&1 | FileCheck --check-prefix=NEWPM %s
+
+// NEWPM: Running pass: GCOVProfilerPass
+
int test1(int a) {
switch (a % 2) {
OpenPOWER on IntegriCloud