Skip to content

Commit 8625c20

Browse files
pcalixtepogo59
authored andcommitted
Test case improvement (Do not optimize debug locations across section boundaries/D149294)
Ensure that the expected location directives are from different sections. Differential Revision: https://reviews.llvm.org/D150308
1 parent 0bb6f83 commit 8625c20

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
;
1313
; Reduced from the above example, the IR has been modified so that
1414
; the store and return instructions have the same DebugLoc; in this
15-
; context, we should see 2 different directives for line #4
15+
; context, we should see 2 different directives for line #4 with an
16+
; intervening section directive.
1617
;
17-
; CHECK-COUNT-2: .loc 0 4 1
18+
; CHECK: .loc 0 4 1
19+
; CHECK: .section .text.func,"ax",@progbits,unique
20+
; CHECK: .loc 0 4 1
1821

1922
define void @func(i1 %0) !dbg !8 {
2023
br i1 %0, label %3, label %2

0 commit comments

Comments
 (0)