linkagename.ll 1.1 KB

123456789101112131415161718192021222324252627
  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. define void @_Z3foov() {
  7. entry:
  8. ret void, !dbg !8
  9. }
  10. !llvm.dbg.cu = !{!0}
  11. !llvm.module.flags = !{!10}
  12. !llvm.gcov = !{!9}
  13. !0 = !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)
  14. !1 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
  15. !2 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
  16. !3 = !{}
  17. !4 = !{!5}
  18. !5 = !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, function: void ()* @_Z3foov, variables: !3)
  19. !6 = !DISubroutineType(types: !7)
  20. !7 = !{null}
  21. !8 = !DILocation(line: 1, scope: !5)
  22. !10 = !{i32 1, !"Debug Info Version", i32 3}