summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Generic
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2018-08-14 17:54:41 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2018-08-14 17:54:41 +0000
commitf446282aad4ce40b0c4570813261b78c527a588b (patch)
tree4da6c331bd1e47a55daa209be5c40cba48d6ae98 /llvm/test/DebugInfo/Generic
parentabf94118c5561171bab909c08ae5b89fada1ffa7 (diff)
downloadbcm5719-llvm-f446282aad4ce40b0c4570813261b78c527a588b.tar.gz
bcm5719-llvm-f446282aad4ce40b0c4570813261b78c527a588b.zip
Revert "[DebugInfo] Generate DWARF debug information for labels. (Fix leak problems)"
This reverts commit cb8c5e417d55141f3f079a8a876e786f44308336 / r339676. This causing a test to fail in http://green.lab.llvm.org/green/job/clang-stage1-configure-RA/48406/ LLVM :: DebugInfo/Generic/debug-label.ll llvm-svn: 339700
Diffstat (limited to 'llvm/test/DebugInfo/Generic')
-rw-r--r--llvm/test/DebugInfo/Generic/debug-label-inline.ll50
-rw-r--r--llvm/test/DebugInfo/Generic/debug-label.ll76
2 files changed, 0 insertions, 126 deletions
diff --git a/llvm/test/DebugInfo/Generic/debug-label-inline.ll b/llvm/test/DebugInfo/Generic/debug-label-inline.ll
deleted file mode 100644
index c121d676a5c..00000000000
--- a/llvm/test/DebugInfo/Generic/debug-label-inline.ll
+++ /dev/null
@@ -1,50 +0,0 @@
-; RUN: llc -O2 -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
-;
-; CHECK: .debug_info contents:
-; CHECK: [[LABEL_ORIGIN:0x[0-9a-zA-Z]+]]:{{ *}}DW_TAG_label
-; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}"top"
-; CHECK-NEXT: DW_AT_decl_file [DW_FORM_data1] {{.*}}debug-label-inline.c
-; CHECK-NEXT: DW_AT_decl_line [DW_FORM_data1] {{.*}}8
-; CHECK: DW_TAG_label
-; CHECK-NEXT: DW_AT_abstract_origin [DW_FORM_ref4] {{.*}}{[[LABEL_ORIGIN]]} "top"
-; CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] {{.*}}{{0x[0-9a-f]+}}
-
-source_filename = "debug-label-inline.c"
-
-@ga = external local_unnamed_addr global i32, align 4
-@gb = external local_unnamed_addr global i32, align 4
-
-define i32 @f2() local_unnamed_addr #0 !dbg !4 {
-entry:
- %0 = load i32, i32* @ga, align 4, !dbg !1
- %1 = load i32, i32* @gb, align 4, !dbg !1
- call void @llvm.dbg.label(metadata !15), !dbg !17
- %add.i = add nsw i32 %1, %0, !dbg !18
- ret i32 %add.i, !dbg !1
-}
-
-declare void @llvm.dbg.label(metadata)
-declare void @llvm.dbg.value(metadata, metadata, metadata)
-
-attributes #0 = { nounwind readonly }
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!3}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, isOptimized: true, emissionKind: FullDebug, enums: !2)
-!1 = !DILocation(line: 18, scope: !4)
-!2 = !{}
-!3 = !{i32 2, !"Debug Info Version", i32 3}
-!4 = distinct !DISubprogram(name: "f2", scope: !6, file: !6, line: 15, type: !7, isLocal: false, isDefinition: true, scopeLine: 15, isOptimized: true, unit: !0, retainedNodes: !2)
-!6 = !DIFile(filename: "debug-label-inline.c", directory: "./")
-!7 = !DISubroutineType(types: !8)
-!8 = !{!10}
-!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
-!11 = distinct !DISubprogram(name: "f1", scope: !6, file: !6, line: 5, type: !12, isLocal: false, isDefinition: true, scopeLine: 5, isOptimized: true, unit: !0, retainedNodes: !14)
-!12 = !DISubroutineType(types: !13)
-!13 = !{!10, !10, !10}
-!14 = !{!15}
-!15 = !DILabel(scope: !11, name: "top", file: !6, line: 8)
-!16 = distinct !DILocation(line: 18, scope: !4)
-!17 = !DILocation(line: 8, scope: !11, inlinedAt: !16)
-!18 = !DILocation(line: 9, scope: !11, inlinedAt: !16)
diff --git a/llvm/test/DebugInfo/Generic/debug-label.ll b/llvm/test/DebugInfo/Generic/debug-label.ll
deleted file mode 100644
index 01add599916..00000000000
--- a/llvm/test/DebugInfo/Generic/debug-label.ll
+++ /dev/null
@@ -1,76 +0,0 @@
-; RUN: llc -fast-isel=false -O0 -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
-;
-; CHECK: .debug_info contents:
-; CHECK: DW_TAG_label
-; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}"top"
-; CHECK-NEXT: DW_AT_decl_file [DW_FORM_data1] {{.*}}debug-label.c
-; CHECK-NEXT: DW_AT_decl_line [DW_FORM_data1] {{.*}}4
-; CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] {{.*}}{{0x[0-9a-f]+}}
-; CHECK: DW_TAG_label
-; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}"done"
-; CHECK-NEXT: DW_AT_decl_file [DW_FORM_data1] {{.*}}debug-label.c
-; CHECK-NEXT: DW_AT_decl_line [DW_FORM_data1] {{.*}}7
-; CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] {{.*}}{{0x[0-9a-f]+}}
-;
-; RUN: llc -fast-isel=false -O0 -o - %s | FileCheck %s -check-prefix=ASM
-;
-; ASM: [[TOP_LOW_PC:[.0-9a-zA-Z]+]]:{{[[:space:]].*}}DEBUG_LABEL: foo:top
-; ASM: [[DONE_LOW_PC:[.0-9a-zA-Z]+]]:{{[[:space:]].*}}DEBUG_LABEL: foo:done
-; ASM-LABEL: .debug_str
-; ASM: [[TOP_LABEL:[.0-9a-zA-Z]+]]:{{[[:space:]].*}}"top"
-; ASM: [[DONE_LABEL:[.0-9a-zA-Z]+]]:{{[[:space:]].*}}"done"
-; ASM-LABEL: .debug_info
-; ASM: DW_TAG_label
-; ASM-NEXT: [[TOP_LABEL]] {{.*}} DW_AT_name
-; ASM-NEXT: 1 {{.*}} DW_AT_decl_file
-; ASM-NEXT: 4 {{.*}} DW_AT_decl_line
-; ASM-NEXT: [[TOP_LOW_PC]] {{.*}} DW_AT_low_pc
-; ASM: DW_TAG_label
-; ASM-NEXT: [[DONE_LABEL]] {{.*}} DW_AT_name
-; ASM-NEXT: 1 {{.*}} DW_AT_decl_file
-; ASM-NEXT: 7 {{.*}} DW_AT_decl_line
-; ASM-NEXT: [[DONE_LOW_PC]] {{.*}} DW_AT_low_pc
-
-source_filename = "debug-label.c"
-
-define dso_local i32 @foo(i32 %a, i32 %b) !dbg !6 {
-entry:
- %a.addr = alloca i32, align 4
- %b.addr = alloca i32, align 4
- %sum = alloca i32, align 4
- store i32 %a, i32* %a.addr, align 4
- store i32 %b, i32* %b.addr, align 4
- br label %top
-
-top:
- call void @llvm.dbg.label(metadata !10), !dbg !11
- %0 = load i32, i32* %a.addr, align 4
- %1 = load i32, i32* %b.addr, align 4
- %add = add nsw i32 %0, %1
- store i32 %add, i32* %sum, align 4
- br label %done
-
-done:
- call void @llvm.dbg.label(metadata !12), !dbg !13
- %2 = load i32, i32* %sum, align 4
- ret i32 %2, !dbg !14
-}
-
-declare void @llvm.dbg.label(metadata)
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!4}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, emissionKind: FullDebug, enums: !2)
-!1 = !DIFile(filename: "debug-label.c", directory: "./")
-!2 = !{}
-!4 = !{i32 2, !"Debug Info Version", i32 3}
-!6 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !7, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, retainedNodes: !2)
-!7 = !DISubroutineType(types: !8)
-!8 = !{!9, !9, !9}
-!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
-!10 = !DILabel(scope: !6, name: "top", file: !1, line: 4)
-!11 = !DILocation(line: 4, column: 1, scope: !6)
-!12 = !DILabel(scope: !6, name: "done", file: !1, line: 7)
-!13 = !DILocation(line: 7, column: 1, scope: !6)
-!14 = !DILocation(line: 8, column: 3, scope: !6)
OpenPOWER on IntegriCloud