Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -mtriple=x86_64-apple-darwin %s -o - -filetype=obj \
      2 ; RUN:   | llvm-dwarfdump -debug-info - | FileCheck %s
      3 
      4 ; Clang modules leave Skeleton CUs as breadcrumbs to point from the object files
      5 ; to the pcm containing the module's debug info.
      6 
      7 ; CHECK: Compile Unit:
      8 ; CHECK: DW_TAG_compile_unit
      9 ; CHECK:   DW_TAG_imported_declaration
     10 ; CHECK: Compile Unit:
     11 ; CHECK: DW_TAG_compile_unit
     12 ; CHECK: DW_AT_name {{.*}}Foo
     13 ; CHECK: DW_AT_{{.*}}dwo_id {{.*}}04d2
     14 ; CHECK: DW_AT_{{.*}}dwo_name {{.*}}"/Foo.pcm"
     15 source_filename = "modules.m"
     16 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
     17 target triple = "x86_64-apple-macosx10.12.0"
     18 
     19 !llvm.dbg.cu = !{!0, !6}
     20 !llvm.module.flags = !{!15, !16}
     21 !llvm.linker.options = !{}
     22 
     23 !0 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !1, producer: "clang version 5.0.0 (trunk 308357) (llvm/trunk 308379)", emissionKind: FullDebug, imports: !3)
     24 !1 = !DIFile(filename: "modules.m", directory: "/")
     25 !3 = !{!4}
     26 !4 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !0, entity: !5, line: 122)
     27 !5 = !DIModule(scope: null, name: "Foo", includePath: ".", isysroot: "/")
     28 !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)
     29 !7 = !DIFile(filename: "Foo", directory: ".")
     30 !15 = !{i32 2, !"Dwarf Version", i32 4}
     31 !16 = !{i32 2, !"Debug Info Version", i32 3}
     32