Skip to content

Commit 3cd9889

Browse files
authored
[BOLT][DWARF] Fix Test (#86042)
Test was not actually checking bolt binary, and had extra POSTCHECK-NEXT lines.
1 parent 8937174 commit 3cd9889

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bolt/test/X86/dwarf5-label-low-pc.s

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# RUN: llvm-dwarfdump --show-form --verbose --debug-addr %t.bolt > %t.txt
1010
# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt >> %t.txt
11+
# RUN: cat %t.txt | FileCheck --check-prefix=POSTCHECK %s
1112

1213
# This test checks that we correctly handle DW_AT_low_pc [DW_FORM_addrx] that is part of DW_TAG_label.
1314

@@ -35,16 +36,14 @@
3536
# POSTCHECK-NEXT: DW_AT_name
3637
# POSTCHECK-NEXT: DW_AT_decl_file
3738
# POSTCHECK-NEXT: DW_AT_decl_line
38-
# POSTCHECK-NEXT:
3939
# POSTCHECK-NEXT:DW_AT_low_pc [DW_FORM_addrx] (indexed (00000002)
40-
# POSTCHECK-SAME: [0x[[#ADDR]]
40+
# POSTCHECK-SAME: 0x[[#ADDR]]
4141
# POSTCHECK: DW_TAG_label
4242
# POSTCHECK-NEXT: DW_AT_name
4343
# POSTCHECK-NEXT: DW_AT_decl_file
4444
# POSTCHECK-NEXT: DW_AT_decl_line
45-
# POSTCHECK-NEXT:
4645
# POSTCHECK-NEXT:DW_AT_low_pc [DW_FORM_addrx] (indexed (00000003)
47-
# POSTCHECK-SAME: [0x[[#ADDR2]]
46+
# POSTCHECK-SAME: 0x[[#ADDR2]]
4847

4948
# clang++ main.cpp -g -S
5049
# int main() {

0 commit comments

Comments
 (0)