summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/GCOVProfiling
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-01-21 17:04:42 +0000
committerVedant Kumar <vsk@apple.com>2016-01-21 17:04:42 +0000
commit61035fa3cb77245e181f6d198561f3454cfc0ca3 (patch)
tree2ea33384cec88c88e68219ced032aca5e66e540d /llvm/test/Transforms/GCOVProfiling
parent6f508afce10b4347010b90e91fae94f9fe8bd9f3 (diff)
downloadbcm5719-llvm-61035fa3cb77245e181f6d198561f3454cfc0ca3.tar.gz
bcm5719-llvm-61035fa3cb77245e181f6d198561f3454cfc0ca3.zip
[GCOV] Avoid emitting profile arcs for module and skeleton CUs
Do not emit profile arc files and note files for module and skeleton CU's. Our users report seeing unexpected *.gcda and *.gcno files in their projects when using gcov-style profiling with modules or frameworks. The unwanted files come from these modules. This is not very helpful for end-users. Further, we've seen reports of instrumented programs crashing while writing these files out (due to I/O failures). rdar://problem/22838296 Reviewed-by: aprantl Differential Revision: http://reviews.llvm.org/D15997 llvm-svn: 258406
Diffstat (limited to 'llvm/test/Transforms/GCOVProfiling')
-rw-r--r--llvm/test/Transforms/GCOVProfiling/modules.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Transforms/GCOVProfiling/modules.ll b/llvm/test/Transforms/GCOVProfiling/modules.ll
new file mode 100644
index 00000000000..1a8edfeedd4
--- /dev/null
+++ b/llvm/test/Transforms/GCOVProfiling/modules.ll
@@ -0,0 +1,12 @@
+; RUN: opt -insert-gcov-profiling -o - < %s | llvm-dis | FileCheck -check-prefix=EMIT-ARCS %s
+
+; EMIT-ARCS-NOT: call void @llvm_gcda_start_file
+
+!llvm.dbg.cu = !{!0}
+!llvm.module.flags = !{!3, !4}
+
+!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "LLVM", isOptimized: false, runtimeVersion: 2, splitDebugFilename: "my.dwo", emissionKind: 1, enums: !2, retainedTypes: !2, subprograms: !2, globals: !2, imports: !2, dwoId: 43981)
+!1 = !DIFile(filename: "<stdin>", directory: "/")
+!2 = !{}
+!3 = !{i32 2, !"Dwarf Version", i32 4}
+!4 = !{i32 2, !"Debug Info Version", i32 3}
OpenPOWER on IntegriCloud