brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 8388739 Raw
41 lines · plain
1; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o - | FileCheck %s2; CHECK: define void @f() !dbg ![[F:[0-9]+]]3define void @f() !dbg !4 {4entry:5  %i = alloca i32, align 46  ; CHECK-NOT: llvm.dbg.{{declare|value}}7  call void @llvm.dbg.declare(metadata ptr %i, metadata !11, metadata !13), !dbg !148  store i32 42, ptr %i, align 4, !dbg !149  call void @llvm.dbg.value(metadata i32 0, metadata !16, metadata !13), !dbg !1510  ret void, !dbg !1511}12 13; Function Attrs: nounwind readnone14declare void @llvm.dbg.declare(metadata, metadata, metadata)15declare void @llvm.dbg.value(metadata, metadata, metadata)16 17!llvm.dbg.cu = !{!0}18!llvm.module.flags = !{!7, !8, !9}19!llvm.ident = !{!10}20 21!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "LLVM", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !2)22!1 = !DIFile(filename: "f.c", directory: "/")23!2 = !{}24; CHECK: ![[F]] = distinct !DISubprogram(name: "f"25; CHECK-NOT: retainedNodes:26; CHECK-NOT: distinct !DISubprogram(name: "f"27; CHECK-NOT: DILocalVariable28!4 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, unit: !0, retainedNodes: !2)29!5 = !DISubroutineType(types: !6)30!6 = !{null}31!7 = !{i32 2, !"Dwarf Version", i32 2}32!8 = !{i32 2, !"Debug Info Version", i32 3}33!9 = !{i32 1, !"PIC Level", i32 2}34!10 = !{!"LLVM"}35!11 = !DILocalVariable(name: "i", scope: !4, file: !1, line: 1, type: !12)36!12 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)37!13 = !DIExpression()38!14 = !DILocation(line: 1, column: 16, scope: !4)39!15 = !DILocation(line: 1, column: 24, scope: !4)40!16 = !DILocalVariable(name: "j", scope: !4, file: !1, line: 1, type: !12)41