165e7ca99SAdrian Prantl; RUN: llc -mtriple=x86_64-apple-darwin %s -o - -filetype=obj \ 27bc1b282SAdrian Prantl; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s 365e7ca99SAdrian Prantl 465e7ca99SAdrian Prantl; Clang modules leave Skeleton CUs as breadcrumbs to point from the object files 565e7ca99SAdrian Prantl; to the pcm containing the module's debug info. 665e7ca99SAdrian Prantl 765e7ca99SAdrian Prantl; CHECK: Compile Unit: 865e7ca99SAdrian Prantl; CHECK: DW_TAG_compile_unit 965e7ca99SAdrian Prantl; CHECK: DW_TAG_imported_declaration 1065e7ca99SAdrian Prantl; CHECK: Compile Unit: 1165e7ca99SAdrian Prantl; CHECK: DW_TAG_compile_unit 1265e7ca99SAdrian Prantl; CHECK: DW_AT_name {{.*}}Foo 1365e7ca99SAdrian Prantl; CHECK: DW_AT_{{.*}}dwo_id {{.*}}04d2 1465e7ca99SAdrian Prantl; CHECK: DW_AT_{{.*}}dwo_name {{.*}}"/Foo.pcm" 1565e7ca99SAdrian Prantlsource_filename = "modules.m" 1665e7ca99SAdrian Prantltarget datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 1765e7ca99SAdrian Prantltarget triple = "x86_64-apple-macosx10.12.0" 1865e7ca99SAdrian Prantl 1965e7ca99SAdrian Prantl!llvm.dbg.cu = !{!0, !6} 2065e7ca99SAdrian Prantl!llvm.module.flags = !{!15, !16} 2165e7ca99SAdrian Prantl!llvm.linker.options = !{} 2265e7ca99SAdrian Prantl 23*7b30370eSAdrian Prantl!0 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !1, producer: "clang version 5.0.0 (trunk 308357) (llvm/trunk 308379)", emissionKind: FullDebug, imports: !3, sysroot: "/") 2465e7ca99SAdrian Prantl!1 = !DIFile(filename: "modules.m", directory: "/") 2565e7ca99SAdrian Prantl!3 = !{!4} 2665e7ca99SAdrian Prantl!4 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !0, entity: !5, line: 122) 27*7b30370eSAdrian Prantl!5 = !DIModule(scope: null, name: "Foo", includePath: ".") 2865e7ca99SAdrian Prantl!6 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !7, producer: "clang version 5.0.0 (trunk 308357) (llvm/trunk 308379)", isOptimized: true, runtimeVersion: 0, splitDebugFilename: "/Foo.pcm", emissionKind: FullDebug, dwoId: 1234) 2965e7ca99SAdrian Prantl!7 = !DIFile(filename: "Foo", directory: ".") 3065e7ca99SAdrian Prantl!15 = !{i32 2, !"Dwarf Version", i32 4} 3165e7ca99SAdrian Prantl!16 = !{i32 2, !"Debug Info Version", i32 3} 32