brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 1e3d27e Raw
38 lines · plain
1; RUN: rm -rf %t2; RUN: mkdir -p %t3; RUN: llc %s -mtriple=x86_64-linux --split-dwarf-file=%t/test.dwo --split-dwarf-output=%t/test.dwo --filetype=obj -o %t/test.o4; RUN: llvm-dwarfdump -v %t/test.dwo | FileCheck %s -DPATH=%t5; RUN: llvm-dwp -e %t/test.o -o %t/test.dwp6; RUN: llvm-dwarfdump -v %t/test.dwp | FileCheck %s -DPATH=%t7 8; CHECK-LABEL: .debug_abbrev.dwo contents:9; CHECK: DW_AT_name10; CHECK: DW_AT_GNU_dwo_name11; CHECK: DW_AT_name12; CHECK-LABEL: .debug_str.dwo contents:13; CHECK: "banana"14; CHECK: "/tmp/test.c"15; CHECK: "[[PATH]]/test.dwo"16 17define void @banana() !dbg !8 {18  ret void, !dbg !1219}20 21!llvm.dbg.cu = !{!0}22!llvm.module.flags = !{!3, !4, !5, !6}23!llvm.ident = !{!7}24 25!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 11.0.1", isOptimized: true, runtimeVersion: 0, splitDebugFilename: "test.dwo", emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: GNU)26!1 = !DIFile(filename: "/tmp/test.c", directory: "/tmp")27!2 = !{}28!3 = !{i32 7, !"Dwarf Version", i32 4}29!4 = !{i32 2, !"Debug Info Version", i32 3}30!5 = !{i32 1, !"wchar_size", i32 4}31!6 = !{i32 7, !"PIC Level", i32 2}32!7 = !{!"clang version 11.0.1"}33!8 = distinct !DISubprogram(name: "banana", scope: !9, file: !9, line: 1, type: !10, scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)34!9 = !DIFile(filename: "test.c", directory: "/tmp")35!10 = !DISubroutineType(types: !11)36!11 = !{null}37!12 = !DILocation(line: 1, column: 20, scope: !8)38