33 lines · plain
1; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t2; RUN: llvm-dwarfdump -debug-info -debug-line %t | FileCheck %s3 4; CHECK: .debug_info contents:5; CHECK: DW_AT_comp_dir ("/usr/local/google/home/blaikie/dev/scratch")6 7; CHECK: .debug_line contents:8; CHECK: file_names[ 1]:9; CHECK-NEXT: name: "main.c"10; CHECK-NEXT: dir_index: 011 12; Function Attrs: noinline nounwind optnone uwtable13define dso_local i32 @main() !dbg !6 {14entry:15 ret i32 0, !dbg !1016}17 18!llvm.dbg.cu = !{!0}19!llvm.module.flags = !{!3, !4}20!llvm.ident = !{!5}21 22!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 8.0.0 (trunk 349782) (llvm/trunk 349794)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: GNU)23!1 = !DIFile(filename: "main.c", directory: "/usr/local/google/home/blaikie/dev/scratch")24!2 = !{}25!3 = !{i32 2, !"Debug Info Version", i32 3}26!4 = !{i32 1, !"wchar_size", i32 4}27!5 = !{!"clang version 8.0.0 (trunk 349782) (llvm/trunk 349794)"}28!6 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)29!7 = !DISubroutineType(types: !8)30!8 = !{!9}31!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)32!10 = !DILocation(line: 2, column: 1, scope: !6)33