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
7 define void @_Z3foov() !dbg !5 {
13 !llvm.module.flags = !{!10}
16 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.3 (trunk 177323)", isOptimized: false, emissionKind: 0, file: !2, enums: !3, retainedTypes: !3, subprograms: !4, globals: !3, imports: !3)
17 !1 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
18 !2 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
21 !5 = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !1, type: !6, variables: !3)
22 !6 = !DISubroutineType(types: !7)
24 !8 = !DILocation(line: 1, scope: !5)
27 !10 = !{i32 1, !"Debug Info Version", i32 3}