summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/AArch64
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2018-10-05 18:29:24 +0000
committerMatthias Braun <matze@braunis.de>2018-10-05 18:29:24 +0000
commitfb43114ba25f81b3c22a8cb27c532b559100d63a (patch)
tree59a0834b1c4c5c00e20b1f63dccdb5a0ba7f17a2 /llvm/test/DebugInfo/AArch64
parent90fc1007425b3e0a46146eaba1afcde8f2787e5c (diff)
downloadbcm5719-llvm-fb43114ba25f81b3c22a8cb27c532b559100d63a.tar.gz
bcm5719-llvm-fb43114ba25f81b3c22a8cb27c532b559100d63a.zip
DwarfDebug: Pick next location in case of missing location at block begin
Context: Compiler generated instructions do not have a debug location assigned to them. However emitting 0-line records for all of them bloats the line tables for very little benefit so we usually avoid doing that. Not emitting anything will lead to the previous debug location getting applied to the locationless instructions. This is not desirable for block begin and after labels. Previously we would emit simply emit line-0 records in this case, this patch changes the behavior to do a forward search for a debug location in these cases before emitting a line-0 record to further reduce line table bloat. Inspired by the discussion in https://reviews.llvm.org/D52862 llvm-svn: 343874
Diffstat (limited to 'llvm/test/DebugInfo/AArch64')
-rw-r--r--llvm/test/DebugInfo/AArch64/line-header.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/AArch64/line-header.ll b/llvm/test/DebugInfo/AArch64/line-header.ll
index 1d9156debf1..2ac94728b86 100644
--- a/llvm/test/DebugInfo/AArch64/line-header.ll
+++ b/llvm/test/DebugInfo/AArch64/line-header.ll
@@ -3,4 +3,4 @@
; check line table length is correctly calculated for both big and little endian
CHECK-LABEL: .debug_line contents:
-CHECK: total_length: 0x0000003f
+CHECK: total_length: 0x0000003c
OpenPOWER on IntegriCloud