summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-03-11 00:51:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-03-11 00:51:37 +0000
commitf1a13f5ad5b54634989ae7d067f5364b56a5a8d4 (patch)
treea248456cf9ef7fe222dba54bc6f418b8e61fcf86 /llvm/test/DebugInfo/X86
parent900086de8817c49724fa7b71edcbd7155ca955fa (diff)
downloadbcm5719-llvm-f1a13f5ad5b54634989ae7d067f5364b56a5a8d4.tar.gz
bcm5719-llvm-f1a13f5ad5b54634989ae7d067f5364b56a5a8d4.zip
Print section start labels when first switching to the section.
This is less brittle and avoids polluting the start of the file with every debug section. llvm-svn: 231898
Diffstat (limited to 'llvm/test/DebugInfo/X86')
-rw-r--r--llvm/test/DebugInfo/X86/dbg-i128-const.ll1
-rw-r--r--llvm/test/DebugInfo/X86/header.ll29
-rw-r--r--llvm/test/DebugInfo/X86/stmt-list.ll5
-rw-r--r--llvm/test/DebugInfo/X86/tls.ll1
4 files changed, 34 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg-i128-const.ll b/llvm/test/DebugInfo/X86/dbg-i128-const.ll
index ee428511e16..d172f01b64a 100644
--- a/llvm/test/DebugInfo/X86/dbg-i128-const.ll
+++ b/llvm/test/DebugInfo/X86/dbg-i128-const.ll
@@ -1,5 +1,6 @@
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
+; CHECK: .section .debug_info
; CHECK: DW_AT_const_value
; CHECK-NEXT: 42
diff --git a/llvm/test/DebugInfo/X86/header.ll b/llvm/test/DebugInfo/X86/header.ll
new file mode 100644
index 00000000000..263f9ec923c
--- /dev/null
+++ b/llvm/test/DebugInfo/X86/header.ll
@@ -0,0 +1,29 @@
+; RUN: llc -mtriple x86_64-pc-linux < %s | FileCheck %s
+
+; Test that we don't pollute the start of the file with debug sections
+
+; CHECK: .text
+; CHECK-NEXT: .file "<stdin>"
+; CHECK-NEXT: .globl f
+; CHECK-NEXT: .align 16, 0x90
+; CHECK-NEXT: .type f,@function
+; CHECK-NEXT: f: # @f
+
+; CHECK: .section .debug_str
+
+define void @f() {
+ ret void, !dbg !9
+}
+!llvm.dbg.cu = !{!0}
+!llvm.module.flags = !{!7, !8}
+
+!0 = !MDCompileUnit(language: DW_LANG_C99, file: !1, producer: "foo", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
+!1 = !MDFile(filename: "/foo/test.c", directory: "/foo")
+!2 = !{}
+!3 = !{!4}
+!4 = !MDSubprogram(name: "f", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, function: void ()* @f, variables: !2)
+!5 = !MDSubroutineType(types: !6)
+!6 = !{null}
+!7 = !{i32 2, !"Dwarf Version", i32 4}
+!8 = !{i32 2, !"Debug Info Version", i32 3}
+!9 = !MDLocation(line: 1, column: 15, scope: !4)
diff --git a/llvm/test/DebugInfo/X86/stmt-list.ll b/llvm/test/DebugInfo/X86/stmt-list.ll
index cbc10ebb467..7cad3fc7ee3 100644
--- a/llvm/test/DebugInfo/X86/stmt-list.ll
+++ b/llvm/test/DebugInfo/X86/stmt-list.ll
@@ -1,9 +1,10 @@
; RUN: llc -mtriple x86_64-pc-linux-gnu < %s | FileCheck %s
+; CHECK: .long .Lline_table_start0 # DW_AT_stmt_list
+
; CHECK: .section .debug_line,"",@progbits
; CHECK-NEXT: .Lsection_line:
-
-; CHECK: .long .Lline_table_start0 # DW_AT_stmt_list
+; CHECK-NEXT: .Lline_table_start0:
define void @f() {
entry:
diff --git a/llvm/test/DebugInfo/X86/tls.ll b/llvm/test/DebugInfo/X86/tls.ll
index 57497b5ce1a..d43a173485c 100644
--- a/llvm/test/DebugInfo/X86/tls.ll
+++ b/llvm/test/DebugInfo/X86/tls.ll
@@ -68,6 +68,7 @@
; check that the expected TLS address description is the first thing in the debug_addr section
; FISSION: .section .debug_addr
+; FISSION: addr_sec:
; FISSION-NEXT: .quad tls@DTPOFF
; FISSION-NEXT: .quad glbl
; FISSION-NOT: .quad glbl
OpenPOWER on IntegriCloud