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