Home | History | Annotate | Download | only in Generic
      1 ; REQUIRES: object-emission
      2 ; RUN: %llc_dwarf -debugger-tune=lldb -accel-tables=Dwarf -filetype=obj -o %t < %s
      3 ; RUN: llvm-dwarfdump -find=_GLOBAL__sub_I__ %t | FileCheck --check-prefix=INFO %s
      4 ; RUN: llvm-dwarfdump -debug-names %t | FileCheck --check-prefix=NAMES %s
      5 ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s
      6 
      7 ; The debug info entry should not have a DW_AT_name, only a DW_AT_linkage_name.
      8 ; INFO: DW_TAG_subprogram
      9 ; INFO-NOT: DW_AT_name
     10 ; INFO:     DW_AT_linkage_name	("_GLOBAL__sub_I__")
     11 ; INFO-NOT: DW_AT_name
     12 
     13 ; The accelerator table should contain only one entry.
     14 ; NAMES: Name count: 1
     15 ; And it should be the linkage name.
     16 ; NAMES: String: 0x{{[0-9a-f]*}} "_GLOBAL__sub_I__"
     17 
     18 ; Verification should succeed.
     19 ; VERIFY: No errors.
     20 
     21 define internal void @_GLOBAL__sub_I__() !dbg !7 {
     22 entry:
     23   ret void
     24 }
     25 
     26 !llvm.dbg.cu = !{!0}
     27 !llvm.module.flags = !{!3, !4, !5}
     28 !llvm.ident = !{!6}
     29 
     30 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 7.0.0 (trunk 329378) (llvm/trunk 329379)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !2)
     31 !1 = !DIFile(filename: "-", directory: "/usr/local/google/home/labath/ll/build/opt")
     32 !2 = !{}
     33 !3 = !{i32 2, !"Dwarf Version", i32 4}
     34 !4 = !{i32 2, !"Debug Info Version", i32 3}
     35 !5 = !{i32 1, !"wchar_size", i32 4}
     36 !6 = !{!"clang version 7.0.0 (trunk 329378) (llvm/trunk 329379)"}
     37 !7 = distinct !DISubprogram(linkageName: "_GLOBAL__sub_I__", scope: !1, file: !1, type: !8, isLocal: true, isDefinition: true, flags: DIFlagArtificial, isOptimized: false, unit: !0, retainedNodes: !2)
     38 !8 = !DISubroutineType(types: !2)
     39