brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 081262e Raw
33 lines · plain
1; RUN: opt -passes='print<module-debuginfo>' -disable-output 2>&1 < %s \2; RUN:   | FileCheck %s3 4; Verify that both compile units, even though one compile units's functions5; were entirely inlined into the other.6;CHECK: Compile unit: DW_LANG_C99 from /tmp/test1.c7;CHECK: Compile unit: DW_LANG_C99 from /tmp/test2.c8;CHECK: Subprogram: f from /tmp/test1.c:19;CHECK: Subprogram: g from /tmp/test2.c:110 11define void @f() !dbg !4 {12  ret void, !dbg !1513}14 15!llvm.dbg.cu = !{!0, !8}16!llvm.module.flags = !{!13, !16}17 18!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.4 (192092)", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)19!1 = !DIFile(filename: "test1.c", directory: "/tmp")20!2 = !{}21!4 = distinct !DISubprogram(name: "f", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, retainedNodes: !2)22!5 = !DIFile(filename: "test1.c", directory: "/tmp")23!6 = !DISubroutineType(types: !7)24!7 = !{null}25!8 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.4 (192092)", isOptimized: false, emissionKind: FullDebug, file: !9, enums: !2, retainedTypes: !2, globals: !2, imports: !2)26!9 = !DIFile(filename: "test2.c", directory: "/tmp")27!11 = distinct !DISubprogram(name: "g", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !8, scopeLine: 1, file: !9, scope: !12, type: !6, retainedNodes: !2)28!12 = !DIFile(filename: "test2.c", directory: "/tmp")29!13 = !{i32 2, !"Dwarf Version", i32 4}30!14 = !DILocation(line: 1, scope: !4)31!15 = !DILocation(line: 1, scope: !11, inlinedAt: !14)32!16 = !{i32 1, !"Debug Info Version", i32 3}33