summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-11-08 12:56:49 -0800
committerDavid Blaikie <dblaikie@gmail.com>2019-11-08 13:27:00 -0800
commit39c308f6b8f06710b2b98d0b126c9175e4bafc20 (patch)
treedde9c7aeb84a866efbf078d8bc5cc5f259a36ceb /llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
parent860ee4f3ebf56f4d2e387ceec9b8028636e72d2c (diff)
downloadbcm5719-llvm-39c308f6b8f06710b2b98d0b126c9175e4bafc20.tar.gz
bcm5719-llvm-39c308f6b8f06710b2b98d0b126c9175e4bafc20.zip
DebugInfo: Use separate macinfo contributions for each CU
The macinfo support was broken for LTO situations, by terminating macinfo lists only once - multiple macinfo contributions were correctly labeled, but they all continued/flowed into later contributions until only one terminator appeared at the end of the section. Correctly terminate each contribution & fix the parsing to handle this situation too. The parsing fix is also necessary for dumping linked binaries - the previous code would stop at the end of the first contribution - missing all later contributions in a linked binary. It'd be nice to improve the dumping to print the offsets of each contribution so it'd be easier to know which CU AT_macro_info refers to which macinfo contribution.
Diffstat (limited to 'llvm/test/DebugInfo/NVPTX/debug-addr-class.ll')
-rw-r--r--llvm/test/DebugInfo/NVPTX/debug-addr-class.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll b/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
index e5ca8defc84..2107e1cdc12 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
@@ -333,6 +333,6 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata)
; CHECK-NEXT: }
; CHECK-NEXT: .section .debug_macinfo
; CHECK-NEXT: {
-; CHECK-NEXT: .b8 0 // End Of Macro List Mark
-; CHECK: }
+; CHECK-EMPTY:
+; CHECK-NEXT: }
OpenPOWER on IntegriCloud