[PATCH] D126733: [BOLT][DWARF] Fix dwarf5-debug-line test

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 16:59:05 PDT 2022


ayermolo created this revision.
Herald added subscribers: hoy, modimo, wenlei.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

After D126484 <https://reviews.llvm.org/D126484>, order in .debug-line-str and .debug-line is different. Changed
test accordingly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126733

Files:
  bolt/test/X86/dwarf5-debug-line.s


Index: bolt/test/X86/dwarf5-debug-line.s
===================================================================
--- bolt/test/X86/dwarf5-debug-line.s
+++ bolt/test/X86/dwarf5-debug-line.s
@@ -9,17 +9,17 @@
 # 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[0x00000009]
 # PRECHECK-NEXT: file_names[  0]:
-# PRECHECK-NEXT: name:  .debug_line_str[0x00000002] = "main.cpp"
+# PRECHECK-NEXT: name:  .debug_line_str[0x00000000] = "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[0x00000009]
 # POSTCHECK-NEXT: file_names[  0]:
-# POSTCHECK-NEXT: name:  .debug_line_str[0x00000002] = "main.cpp"
+# POSTCHECK-NEXT: name:  .debug_line_str[0x00000000] = "main.cpp"
 # POSTCHECK-NEXT: dir_index: 0
 # POSTCHECK-NEXT: md5_checksum: bb12fec8d002b1f0e06f7dee4604c6cc
 # POSTCHECK-NOT: file_names[  1]:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126733.433234.patch
Type: text/x-patch
Size: 1200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220531/b3e514df/attachment.bin>


More information about the llvm-commits mailing list