1; RUN: llc -split-dwarf-file=foo.dwo %s -filetype=obj -o - | llvm-dwarfdump -debug-info - | FileCheck %s 2 3; DW_AT_LLVM_sysroot goes into the .dwo, not in the skeleton. 4 5; CHECK: DW_TAG_skeleton_unit 6; CHECK-NOT: DW_AT_LLVM_sysroot 7; CHECK-NOT: DW_AT_LLVM_sdk 8; CHECK: DW_TAG_compile_unit 9; CHECK-NOT: DW_TAG 10; CHECK: DW_AT_LLVM_sysroot ("/opt/clang-root") 11; CHECK: DW_AT_APPLE_sdk ("Linux.sdk") 12 13target triple = "x86_64-pc-linux" 14 15declare void @_Z2f1v() 16 17; Function Attrs: noinline norecurse uwtable 18define i32 @main() !dbg !9 { 19entry: 20 ret i32 0, !dbg !18 21} 22 23!llvm.dbg.cu = !{!0} 24!llvm.module.flags = !{!6, !7, !8} 25 26!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, emissionKind: FullDebug, enums: !2, sysroot: "/opt/clang-root", sdk: "Linux.sdk") 27!1 = !DIFile(filename: "a.c", directory: "/") 28!2 = !{} 29!6 = !{i32 2, !"Dwarf Version", i32 5} 30!7 = !{i32 2, !"Debug Info Version", i32 3} 31!8 = !{i32 1, !"wchar_size", i32 4} 32!9 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !10, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2) 33!10 = !DISubroutineType(types: !11) 34!11 = !{!12} 35!12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 36!18 = !DILocation(line: 4, column: 1, scope: !9) 37