34 lines · plain
1source_filename = "test/DebugInfo/X86/DIModuleContext.ll"2target triple = "x86_64-apple-macosx"3; RUN: llc %s -o - -filetype=obj \4; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s5; CHECK: DW_TAG_module6; CHECK-NOT: NULL7; CHECK: DW_TAG_structure_type8 9; Hand-crafted based on10; struct s;11; struct s *s;12 13%struct.s = type opaque14 15@i = common global ptr null, align 8, !dbg !016 17!llvm.dbg.cu = !{!2}18!llvm.module.flags = !{!11, !12}19 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: "/")24!4 = !{}25!5 = !{!0}26!6 = !{!7}27!7 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !2, entity: !8, file: !3, line: 11)28!8 = !DIModule(scope: null, name: "Module", includePath: ".")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}33 34