diff options
| author | Manman Ren <mren@apple.com> | 2013-05-21 00:57:22 +0000 |
|---|---|---|
| committer | Manman Ren <mren@apple.com> | 2013-05-21 00:57:22 +0000 |
| commit | 9d4c735885bfc5a6d5300ed2cd58e3b42f0637fd (patch) | |
| tree | 3df86737d63e91ab90fd1fb841b6c852f3c3ed52 /llvm/test/DebugInfo | |
| parent | 0fed8d4ef7c39afb76a684cb11cb543c2d5fa41c (diff) | |
| download | bcm5719-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.ll | 6 |
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 |

