99ef08a4f64fe55b517ceb8991826233e143bfe1
[oota-llvm.git] / test / Transforms / GCOVProfiling / linkagename.ll
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 define void @_Z3foov() {
8 entry:
9   ret void, !dbg !8
10 }
11
12 !llvm.dbg.cu = !{!0}
13 !llvm.module.flags = !{!10}
14 !llvm.gcov = !{!9}
15
16 !0 = !MDCompileUnit(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 = !MDFile(filename: "hello.cc", directory: "/home/nlewycky")
18 !2 = !MDFile(filename: "hello.cc", directory: "/home/nlewycky")
19 !3 = !{i32 0}
20 !4 = !{!5}
21 !5 = !MDSubprogram(name: "foo", linkageName: "_Z3foov", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !1, type: !6, function: void ()* @_Z3foov, variables: !3)
22 !6 = !MDSubroutineType(types: !7)
23 !7 = !{null}
24 !8 = !MDLocation(line: 1, scope: !5)
25
26
27 !10 = !{i32 1, !"Debug Info Version", i32 3}