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