1; RUN: llc -filetype=asm -O0 -mtriple=x86_64-linux-gnu < %s -dwarf-sections-as-references=Enable -dwarf-inlined-strings=Enable -no-dwarf-ranges-section -dwarf-version 2 -debugger-tune=gdb | FileCheck %s 2 3; CHECK: .file 4 5; CHECK-NOT: .L 6 7; CHECK: .section .debug_abbrev 8; CHECK-NOT: DW_FORM_str{{p|x}} 9; CHECK-NOT: .L 10 11; CHECK: .section .debug_info 12; CHECK-NOT: .L 13; CHECK: .short 2 # DWARF version number 14; CHECK-NOT: .L 15; CHECK: .long .debug_abbrev # Offset Into Abbrev. Section 16; CHECK-NOT: .L 17; CHECK: .long .debug_line # DW_AT_stmt_list 18; CHECK-NOT: .L 19; CHECK: .long .debug_abbrev # Offset Into Abbrev. Section 20; CHECK-NOT: .L 21; CHECK: .long .debug_line # DW_AT_stmt_list 22; CHECK-NOT: .L 23; CHECK: .quad .debug_info+{{[0-9]+}} # DW_AT_type 24; CHECK-NOT: .L 25; CHECK: .byte 0 # End Of Children Mark 26; CHECK-NOT: .L 27 28source_filename = "test/DebugInfo/X86/sections_as_references.ll" 29 30%struct.foo = type { i8 } 31 32@f = global %struct.foo zeroinitializer, align 1, !dbg !0 33@g = global %struct.foo zeroinitializer, align 1, !dbg !6 34 35!llvm.dbg.cu = !{!9, !12} 36!llvm.module.flags = !{!14, !15} 37 38!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 39!1 = !DIGlobalVariable(name: "f", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true) 40!2 = !DIFile(filename: "tu1.cpp", directory: "/dir") 41!3 = !DICompositeType(tag: DW_TAG_structure_type, name: "foo", file: !4, line: 1, size: 8, align: 8, elements: !5, identifier: "_ZTS3foo") 42!4 = !DIFile(filename: "./hdr.h", directory: "/dir") 43!5 = !{} 44!6 = !DIGlobalVariableExpression(var: !7, expr: !DIExpression()) 45!7 = !DIGlobalVariable(name: "g", scope: null, file: !8, line: 2, type: !3, isLocal: false, isDefinition: true) 46!8 = !DIFile(filename: "tu2.cpp", directory: "/dir") 47!9 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !10, globals: !11, imports: !5, nameTableKind: None) 48!10 = !{!3} 49!11 = !{!0} 50!12 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !8, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !10, globals: !13, imports: !5, nameTableKind: None) 51!13 = !{!6} 52!14 = !{i32 2, !"Dwarf Version", i32 2} 53!15 = !{i32 1, !"Debug Info Version", i32 3} 54 55