summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/empty.ll
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-25 05:34:24 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-25 05:34:24 +0000
commit3ffe4dd67f004ff4fa9d563f957889288519a243 (patch)
tree6c4ed4b56b77c8bc78dad4fa82aa7d6d9795615d /llvm/test/DebugInfo/empty.ll
parent1425622ad857d5ddf2062c1d1d43f14e5d0cf346 (diff)
downloadbcm5719-llvm-3ffe4dd67f004ff4fa9d563f957889288519a243.tar.gz
bcm5719-llvm-3ffe4dd67f004ff4fa9d563f957889288519a243.zip
DebugInfo: Add GNU_addr_base and GNU_ranges_base only when there are addresses or ranges
Based on code review feedback from Eric in r204672. llvm-svn: 204702
Diffstat (limited to 'llvm/test/DebugInfo/empty.ll')
-rw-r--r--llvm/test/DebugInfo/empty.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/empty.ll b/llvm/test/DebugInfo/empty.ll
index 1fb18166146..cf40523e7e4 100644
--- a/llvm/test/DebugInfo/empty.ll
+++ b/llvm/test/DebugInfo/empty.ll
@@ -1,6 +1,7 @@
; REQUIRES: object-emission
; RUN: %llc_dwarf < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s
+; RUN: %llc_dwarf -split-dwarf=Enable < %s -filetype=obj | llvm-dwarfdump - | FileCheck --check-prefix=FISSION %s
; darwin has a workaround for a linker bug so it always emits one line table entry
; XFAIL: darwin
@@ -17,6 +18,9 @@
; CHECK: .debug_pubtypes contents:
; CHECK-NOT: Offset
+; Don't emit DW_AT_addr_base when there are no addresses.
+; FISSION-NOT: DW_AT_GNU_addr_base [DW_FORM_sec_offset]
+
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!5}
OpenPOWER on IntegriCloud