• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: echo '!9 = !{!"%/T/linkagename.ll", !0}' > %t1
2; RUN: cat %s %t1 > %t2
3; RUN: opt -insert-gcov-profiling -disable-output < %t2
4; RUN: grep _Z3foov %T/linkagename.gcno
5; RUN: rm %T/linkagename.gcno
6
7; RUN: opt -passes=insert-gcov-profiling -disable-output < %t2
8; RUN: grep _Z3foov %T/linkagename.gcno
9; RUN: rm %T/linkagename.gcno
10
11define void @_Z3foov() !dbg !5 {
12entry:
13  ret void, !dbg !8
14}
15
16!llvm.dbg.cu = !{!0}
17!llvm.module.flags = !{!10}
18!llvm.gcov = !{!9}
19
20!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)
21!1 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
22!2 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
23!3 = !{}
24!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)
25!6 = !DISubroutineType(types: !7)
26!7 = !{null}
27!8 = !DILocation(line: 1, scope: !5)
28
29
30!10 = !{i32 1, !"Debug Info Version", i32 3}
31