36 lines · plain
1; This checks that .debug_line can be generated in the DWARF64 format.2 3; RUN: llc -mtriple=x86_64 -dwarf-version=3 -dwarf64 -filetype=obj %s -o %t34; RUN: llvm-dwarfdump -debug-line %t3 | FileCheck %s5 6; CHECK: .debug_line contents:7; CHECK-NEXT: debug_line[0x00000000]8; CHECK-NEXT: Line table prologue:9; CHECK-NEXT: total_length:10; CHECK-NEXT: format: DWARF6411 12; IR generated and reduced from:13; $ cat foo.c14; int foo;15; $ clang -g -S -emit-llvm foo.c -o foo.ll16 17target triple = "x86_64-unknown-linux-gnu"18 19@foo = dso_local global i32 0, align 4, !dbg !020 21!llvm.dbg.cu = !{!2}22!llvm.module.flags = !{!7, !8, !9}23!llvm.ident = !{!10}24 25!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())26!1 = distinct !DIGlobalVariable(name: "foo", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)27!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, splitDebugInlining: false, nameTableKind: None)28!3 = !DIFile(filename: "foo.c", directory: "/tmp")29!4 = !{}30!5 = !{!0}31!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)32!7 = !{i32 7, !"Dwarf Version", i32 4}33!8 = !{i32 2, !"Debug Info Version", i32 3}34!9 = !{i32 1, !"wchar_size", i32 4}35!10 = !{!"clang version 12.0.0"}36