debug.ll 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ; RUN: opt < %s -dfsan -dfsan-abilist=%S/Inputs/debuglist.txt -S | FileCheck %s
  2. ; CHECK: !DISubprogram(name: "main",{{.*}} function: i32 ()* @main{{[,)]}}
  3. ; Generated from a simple source file compiled with clang -g:
  4. ; int main() {
  5. ; }
  6. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  7. target triple = "x86_64-unknown-linux-gnu"
  8. ; Function Attrs: nounwind uwtable
  9. define i32 @main() #0 {
  10. entry:
  11. ret i32 0, !dbg !12
  12. }
  13. attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
  14. !llvm.dbg.cu = !{!0}
  15. !llvm.module.flags = !{!9, !10}
  16. !llvm.ident = !{!11}
  17. !0 = !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.6.0 ", isOptimized: false, emissionKind: 1, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
  18. !1 = !DIFile(filename: "debug.cpp", directory: "/tmp/dbginfo")
  19. !2 = !{}
  20. !3 = !{!4}
  21. !4 = !DISubprogram(name: "main", line: 1, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, function: i32 ()* @main, variables: !2)
  22. !5 = !DIFile(filename: "debug.cpp", directory: "/tmp/dbginfo")
  23. !6 = !DISubroutineType(types: !7)
  24. !7 = !{!8}
  25. !8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
  26. !9 = !{i32 2, !"Dwarf Version", i32 4}
  27. !10 = !{i32 2, !"Debug Info Version", i32 3}
  28. !11 = !{!"clang version 3.6.0 "}
  29. !12 = !DILocation(line: 2, column: 1, scope: !4)