brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 8efb739 Raw
38 lines · plain
1; This checks that .debug_frame can be generated in the DWARF64 format.2 3; RUN: llc -mtriple=x86_64 -dwarf64 -force-dwarf-frame-section -filetype=obj %s -o %t4; RUN: llvm-dwarfdump -debug-frame %t | FileCheck %s5 6; CHECK:      .debug_frame contents:7; CHECK:      00000000 {{.+}} ffffffffffffffff CIE8; CHECK-NEXT:   Format:                DWARF649; CHECK:      {{.+}} 0000000000000000 FDE cie=00000000 pc=10; CHECK-NEXT:   Format:       DWARF6411 12; IR generated and reduced from:13; $ cat foo.c14; void foo() { }15; $ clang -g -S -emit-llvm foo.c -o foo.ll16 17target triple = "x86_64-unknown-linux-gnu"18 19define dso_local void @foo() #0 !dbg !7 {20  ret void, !dbg !1021}22 23!llvm.dbg.cu = !{!0}24!llvm.module.flags = !{!3, !4, !5}25!llvm.ident = !{!6}26 27!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)28!1 = !DIFile(filename: "foo.c", directory: "/tmp")29!2 = !{}30!3 = !{i32 7, !"Dwarf Version", i32 4}31!4 = !{i32 2, !"Debug Info Version", i32 3}32!5 = !{i32 1, !"wchar_size", i32 4}33!6 = !{!"clang version 12.0.0"}34!7 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)35!8 = !DISubroutineType(types: !9)36!9 = !{null}37!10 = !DILocation(line: 1, column: 14, scope: !7)38