1 ; REQUIRES: object-emission
3 ; RUN: llc -o - %s -filetype=obj -O0 -debugger-tune=lldb -generate-type-units -mtriple=x86_64-unknown-linux-gnu | llvm-dwarfdump -debug-types - | FileCheck %s
8 ; no known LLVM frontends produce appropriate unique identifiers for C types,
9 ; so we don't produce type units for them
10 ; CHECK-NOT: DW_TAG_type_unit
12 source_filename = "test/DebugInfo/X86/c-type-units.ll"
16 @f = common global %struct.foo zeroinitializer, align 1, !dbg !0
19 !llvm.module.flags = !{!7, !8}
22 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
23 !1 = !DIGlobalVariable(name: "f", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true)
24 !2 = !DIFile(filename: "simple.c", directory: "/tmp/dbginfo")
25 !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "foo", file: !2, line: 1, align: 8, elements: !4)
27 !5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang version 3.5 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !4, globals: !6, imports: !4)
29 !7 = !{i32 2, !"Dwarf Version", i32 4}
30 !8 = !{i32 1, !"Debug Info Version", i32 3}
31 !9 = !{!"clang version 3.5 "}