| NAKAMURA Takumi | 9aec5c3 | 2016-09-02 01:33:00 +0000 | [diff] [blame] | 1 | ; RUN: echo '!10 = !{!"%/T/aaa.gcno", !"%/T/bbb.gcda", !0}' > %t1 |
| Nick Lewycky | 97e49ac | 2016-08-31 23:04:32 +0000 | [diff] [blame] | 2 | ; RUN: cat %s %t1 > %t2 |
| 3 | ; RUN: opt -insert-gcov-profiling -S -o %t3 < %t2 |
| 4 | ; RUN: grep _Z3foov %T/aaa.gcno |
| 5 | ; RUN: grep bbb.gcda %t3 |
| 6 | ; RUN: rm %T/aaa.gcno |
| 7 | |
| 8 | define void @_Z3foov() !dbg !5 { |
| 9 | entry: |
| 10 | ret void, !dbg !8 |
| 11 | } |
| 12 | |
| 13 | !llvm.dbg.cu = !{!0} |
| 14 | !llvm.module.flags = !{!9} |
| 15 | !llvm.gcov = !{!10} |
| 16 | |
| 17 | !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) |
| 18 | !1 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky") |
| 19 | !2 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky") |
| 20 | !3 = !{} |
| 21 | !5 = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !1, type: !6, variables: !3) |
| 22 | !6 = !DISubroutineType(types: !7) |
| 23 | !7 = !{null} |
| 24 | !8 = !DILocation(line: 1, scope: !5) |
| 25 | |
| 26 | |
| 27 | !9 = !{i32 1, !"Debug Info Version", i32 3} |