debug-names-index-type.ll 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ; REQUIRES: object-emission
  2. ; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s
  3. ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s
  4. ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s
  5. ; Check that the entry for the "__ARRAY_SIZE_TYPE__" index type is present in the
  6. ; accelerator table.
  7. ; CHECK: String: 0x{{[0-9a-f]*}} "__ARRAY_SIZE_TYPE__"
  8. ; CHECK-NEXT: Entry
  9. ; CHECK-NEXT: Abbrev
  10. ; CHECK-NEXT: Tag: DW_TAG_base_type
  11. ; VERIFY: No errors.
  12. ; Generated by:
  13. ; clang -g -x c - -o - -S -emit-llvm <<<"int a[1];"
  14. @a = common dso_local global [1 x i32] zeroinitializer, align 4, !dbg !0
  15. !llvm.dbg.cu = !{!2}
  16. !llvm.module.flags = !{!11, !12, !13}
  17. !llvm.ident = !{!14}
  18. !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
  19. !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !6, line: 1, type: !7, isLocal: false, isDefinition: true)
  20. !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 7.0.0 (trunk 329543) (llvm/trunk 329575)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
  21. !3 = !DIFile(filename: "-", directory: "/tmp")
  22. !4 = !{}
  23. !5 = !{!0}
  24. !6 = !DIFile(filename: "<stdin>", directory: "/tmp")
  25. !7 = !DICompositeType(tag: DW_TAG_array_type, baseType: !8, size: 32, elements: !9)
  26. !8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
  27. !9 = !{!10}
  28. !10 = !DISubrange(count: 1)
  29. !11 = !{i32 2, !"Dwarf Version", i32 4}
  30. !12 = !{i32 2, !"Debug Info Version", i32 3}
  31. !13 = !{i32 1, !"wchar_size", i32 4}
  32. !14 = !{!"clang version 7.0.0 (trunk 329543) (llvm/trunk 329575)"}