Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
      2 ; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
      3 
      4 ; Make sure that structures have a decl file and decl line attached.
      5 ; CHECK: DW_TAG_structure_type
      6 ; CHECK: DW_AT_decl_file
      7 ; CHECK: DW_AT_decl_line
      8 ; CHECK: DW_TAG_member
      9 
     10 %struct.foo = type { i32 }
     11 
     12 @f = common global %struct.foo zeroinitializer, align 4
     13 
     14 !llvm.dbg.cu = !{!0}
     15 !llvm.module.flags = !{!12}
     16 
     17 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.1 (trunk 152837) (llvm/trunk 152845)", isOptimized: false, emissionKind: 0, file: !11, enums: !1, retainedTypes: !1, subprograms: !1, globals: !3, imports:  !1)
     18 !1 = !{}
     19 !3 = !{!5}
     20 !5 = !DIGlobalVariable(name: "f", line: 5, isLocal: false, isDefinition: true, scope: null, file: !6, type: !7, variable: %struct.foo* @f)
     21 !6 = !DIFile(filename: "struct_bug.c", directory: "/Users/echristo/tmp")
     22 !7 = !DICompositeType(tag: DW_TAG_structure_type, name: "foo", line: 1, size: 32, align: 32, file: !11, elements: !8)
     23 !8 = !{!9}
     24 !9 = !DIDerivedType(tag: DW_TAG_member, name: "a", line: 2, size: 32, align: 32, file: !11, scope: !7, baseType: !10)
     25 !10 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
     26 !11 = !DIFile(filename: "struct_bug.c", directory: "/Users/echristo/tmp")
     27 !12 = !{i32 1, !"Debug Info Version", i32 3}
     28