summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-05-21 00:57:22 +0000
committerManman Ren <mren@apple.com>2013-05-21 00:57:22 +0000
commit9d4c735885bfc5a6d5300ed2cd58e3b42f0637fd (patch)
tree3df86737d63e91ab90fd1fb841b6c852f3c3ed52 /llvm/test/DebugInfo
parent0fed8d4ef7c39afb76a684cb11cb543c2d5fa41c (diff)
downloadbcm5719-llvm-9d4c735885bfc5a6d5300ed2cd58e3b42f0637fd.tar.gz
bcm5719-llvm-9d4c735885bfc5a6d5300ed2cd58e3b42f0637fd.zip
Dwarf: use a single line table to generate assembly when .loc is used.
This is to fix PR15408 where an undefined symbol Lline_table_start1 is used. Since we do not generate the debug_line section when .loc is used, Lline_table_start1 is not emitted and we can't refer to it when calculating at_stmt_list for a compile unit. llvm-svn: 182344
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll b/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
index e7af892c10c..620478a879a 100644
--- a/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
+++ b/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
@@ -1,5 +1,6 @@
; RUN: llc -O0 %s -mtriple=x86_64-apple-darwin -filetype=obj -o %t
; RUN: llvm-dwarfdump %t | FileCheck %s
+; RUN: llc < %s -O0 -mtriple=x86_64-apple-macosx10.7 | FileCheck %s -check-prefix=ASM
; rdar://13067005
; CHECK: .debug_info contents:
@@ -20,6 +21,11 @@
; CHECK: file_names[ 1] 0 0x00000000 0x00000000 simple2.c
; CHECK-NOT: file_names
+; PR15408
+; ASM: L__DWARF__debug_info_begin0:
+; ASM: .long 0 ## DW_AT_stmt_list
+; ASM: L__DWARF__debug_info_begin1:
+; ASM: .long 0 ## DW_AT_stmt_list
define i32 @test(i32 %a) nounwind uwtable ssp {
entry:
%a.addr = alloca i32, align 4
OpenPOWER on IntegriCloud