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.
4 ; RUN: llc -filetype=asm -mtriple=x86_64-linux-gnu -dwarf-sections-as-references=Enable < %s \
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
12 %struct.foo = type { i8 }
14 @f = global %struct.foo zeroinitializer, align 1, !dbg !0
17 !llvm.module.flags = !{!8}
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")
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)
27 !8 = !{i32 1, !"Debug Info Version", i32 3}