[BOLT][DWARF] Fix dwarf5-debug-line test

After D126484, order in .debug-line-str and .debug-line is different. Changed
test accordingly.

Differential Revision: https://reviews.llvm.org/D126733
This commit is contained in:
Alexander Yermolovich 2022-05-31 16:56:57 -07:00
parent e2adffc39c
commit ec2711b354
1 changed files with 8 additions and 4 deletions

View File

@ -9,17 +9,21 @@
# This test checks that DWARF5 .debug_line is handled correctly.
# PRECHECK: version: 5
# PRECHECK: include_directories[ 0] = .debug_line_str[0x00000000]
# PRECHECK: include_directories[ 0] = .debug_line_str
# PRECHECK-SAME: ] = "."
# PRECHECK-NEXT: file_names[ 0]:
# PRECHECK-NEXT: name: .debug_line_str[0x00000002] = "main.cpp"
# PRECHECK-NEXT: name: .debug_line_str
# PRECHECK-SAME: = "main.cpp"
# PRECHECK-NEXT: dir_index: 0
# PRECHECK-NEXT: md5_checksum: bb12fec8d002b1f0e06f7dee4604c6cc
# PRECHECK-NOT: file_names[ 1]:
# POSTCHECK: version: 5
# POSTCHECK: include_directories[ 0] = .debug_line_str[0x00000000]
# POSTCHECK: include_directories[ 0] = .debug_line_str
# POSTCHECK-SAME: ] = "."
# POSTCHECK-NEXT: file_names[ 0]:
# POSTCHECK-NEXT: name: .debug_line_str[0x00000002] = "main.cpp"
# POSTCHECK-NEXT: name: .debug_line_str
# POSTCHECK-SAME: ] = "main.cpp"
# POSTCHECK-NEXT: dir_index: 0
# POSTCHECK-NEXT: md5_checksum: bb12fec8d002b1f0e06f7dee4604c6cc
# POSTCHECK-NOT: file_names[ 1]: