brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 559f201 Raw
44 lines · plain
1; RUN: llc --filetype=obj -O0 -o - %s | llvm-dwarfdump --verify -2 3; Check that abstract DIE for a subprogram referenced from another compile unit4; is emitted in the correct CU.5 6target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"7target triple = "aarch64"8 9define void @a() !dbg !10 {10  br label %for.b.c.c, !dbg !1311  for.b.c.c:12    br label %for.b.c.c13}14 15!llvm.dbg.cu = !{!0, !6}16!llvm.module.flags = !{!8}17 18!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_20, file: !1, emissionKind: FullDebug, globals: !2)19!1 = !DIFile(filename: "foo.cpp", directory: "")20!2 = !{!3}21!3 = !DIGlobalVariableExpression(var: !4, expr: !DIExpression())22!4 = !DIGlobalVariable(type: !5)23!5 = !DICompositeType(tag: DW_TAG_class_type)24!6 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_20, file: !7, emissionKind: FullDebug)25!7 = !DIFile(filename: "bar.cpp", directory: "")26!8 = !{i32 2, !"Debug Info Version", i32 3}27!10 = distinct !DISubprogram(type: !11, unit: !6)28!11 = !DISubroutineType(types: !12)29!12 = !{}30!13 = !DILocation(scope: !14, inlinedAt: !15)31!14 = distinct !DISubprogram(unit: !6)32!15 = !DILocation(scope: !16, inlinedAt: !25)33!16 = distinct !DISubprogram(type: !11, unit: !6, declaration: !17)34!17 = !DISubprogram(scope: !5, type: !11, spFlags: DISPFlagOptimized, templateParams: !18)35!18 = !{!19}36!19 = !DITemplateTypeParameter(type: !20)37!20 = !DICompositeType(tag: DW_TAG_class_type, scope: !21)38!21 = distinct !DISubprogram(unit: !6, retainedNodes: !22)39!22 = !{!23}40!23 = !DILocalVariable(scope: !21, type: !24)41!24 = !DIBasicType()42!25 = !DILocation(scope: !21, inlinedAt: !26)43!26 = !DILocation(scope: !10)44