1; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t 2; RUN: llvm-dwarfdump %t | FileCheck %s 3 4; CHECK: .debug_info.dwo contents: 5; CHECK: DW_TAG_compile_unit 6; CHECK: DW_TAG_subprogram 7; CHECK: DW_TAG_imported_module 8 9; Function Attrs: noinline nounwind optnone uwtable 10define dso_local void @_Z4testv() !dbg !5 { 11entry: 12 ret void, !dbg !13 13} 14 15!llvm.dbg.cu = !{!0} 16!llvm.module.flags = !{!9, !10, !11} 17!llvm.ident = !{!12} 18 19!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 8.0.0 (trunk 349508) (llvm/trunk 349520)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, imports: !3, nameTableKind: None) 20!1 = !DIFile(filename: "test.cpp", directory: "/usr/local/google/home/blaikie/dev/scratch") 21!2 = !{} 22!3 = !{!4} 23!4 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !5, entity: !8, file: !1, line: 2) 24!5 = distinct !DISubprogram(name: "test", linkageName: "_Z4testv", scope: !1, file: !1, line: 2, type: !6, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2) 25!6 = !DISubroutineType(types: !7) 26!7 = !{null} 27!8 = !DINamespace(name: "ns1", scope: null) 28!9 = !{i32 2, !"Dwarf Version", i32 4} 29!10 = !{i32 2, !"Debug Info Version", i32 3} 30!11 = !{i32 1, !"wchar_size", i32 4} 31!12 = !{!"clang version 8.0.0 (trunk 349508) (llvm/trunk 349520)"} 32!13 = !DILocation(line: 2, column: 36, scope: !5) 33 34