1 source_filename = "test/DebugInfo/X86/DIModuleContext.ll"
2 target triple = "x86_64-apple-macosx"
3 ; RUN: %llc_dwarf %s -o - -filetype=obj \
4 ; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s
7 ; CHECK: DW_TAG_structure_type
9 ; Hand-crafted based on
13 %struct.s = type opaque
15 @i = common global %struct.s* null, align 8, !dbg !0
18 !llvm.module.flags = !{!11, !12}
20 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
21 !1 = !DIGlobalVariable(name: "s", scope: !2, file: !3, line: 2, type: !9, isLocal: false, isDefinition: true)
22 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, imports: !6)
23 !3 = !DIFile(filename: "test.c", directory: "/")
27 !7 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !2, entity: !8, file: !3, line: 11)
28 !8 = !DIModule(scope: null, name: "Module", includePath: ".", isysroot: "/")
29 !9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64, align: 64)
30 !10 = !DICompositeType(tag: DW_TAG_structure_type, name: "s", scope: !8, file: !3, line: 1, flags: DIFlagFwdDecl)
31 !11 = !{i32 2, !"Dwarf Version", i32 2}
32 !12 = !{i32 2, !"Debug Info Version", i32 3}