29 lines · plain
1; RUN: rm -rf %t && mkdir -p %t2; RUN: echo '!10 = !{!"%/t/aaa.gcno", !"%/t/bbb.gcda", !0}' > %t/13; RUN: cat %s %t/1 > %t/24; RUN: opt -passes=insert-gcov-profiling -S -o %t/3 < %t/25; RUN: grep _Z3foov %t/aaa.gcno6; RUN: grep bbb.gcda %t/37; RUN: rm %t/aaa.gcno8 9define void @_Z3foov() !dbg !5 {10entry:11 ret void, !dbg !812}13 14!llvm.dbg.cu = !{!0}15!llvm.module.flags = !{!9}16!llvm.gcov = !{!10}17 18!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.3 (trunk 177323)", isOptimized: false, emissionKind: FullDebug, file: !2, enums: !3, retainedTypes: !3, globals: !3, imports: !3)19!1 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")20!2 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")21!3 = !{}22!5 = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", line: 1, virtualIndex: 6, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, scopeLine: 1, file: !1, scope: !1, type: !6, retainedNodes: !3)23!6 = !DISubroutineType(types: !7)24!7 = !{null}25!8 = !DILocation(line: 1, scope: !5)26 27 28!9 = !{i32 1, !"Debug Info Version", i32 3}29