• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test that references to CU are 4 bytes long when the target is 64-bit
2; and -dwarf-sections-as-references=Enable is specified.
3
4; RUN: llc -filetype=asm -mtriple=x86_64-linux-gnu -dwarf-sections-as-references=Enable < %s \
5; RUN:   | FileCheck %s
6
7; CHECK: .section .debug_pubnames
8; CHECK: .long .debug_info      # Offset of Compilation Unit Info
9; CHECK: .section .debug_pubtypes
10; CHECK: .long .debug_info      # Offset of Compilation Unit Info
11
12%struct.foo = type { i8 }
13
14@f = global %struct.foo zeroinitializer, align 1, !dbg !0
15
16!llvm.dbg.cu = !{!5}
17!llvm.module.flags = !{!8}
18
19!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
20!1 = !DIGlobalVariable(name: "f", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true)
21!2 = !DIFile(filename: "tu1.cpp", directory: "/dir")
22!3 = !DICompositeType(tag: DW_TAG_structure_type, name: "foo", file: !2, line: 1, size: 8, align: 8, elements: !4, identifier: "_ZTS3foo")
23!4 = !{}
24!5 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !6, globals: !7, imports: !4)
25!6 = !{!3}
26!7 = !{!0}
27!8 = !{i32 1, !"Debug Info Version", i32 3}
28