[lld] 58938b5 - [NFC][DebugInfo] Use consistent regex group spelling
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 01:49:52 PDT 2020
Author: Petr Hosek
Date: 2020-09-15T01:49:42-07:00
New Revision: 58938b544b728ccf90462a7e4854e8a533eb9296
URL: https://github.com/llvm/llvm-project/commit/58938b544b728ccf90462a7e4854e8a533eb9296
DIFF: https://github.com/llvm/llvm-project/commit/58938b544b728ccf90462a7e4854e8a533eb9296.diff
LOG: [NFC][DebugInfo] Use consistent regex group spelling
This is a follow up to c1f2fb5184ca.
Added:
Modified:
lld/test/ELF/conflict-debug-variable2.s
lld/test/wasm/debuginfo.test
Removed:
################################################################################
diff --git a/lld/test/ELF/conflict-debug-variable2.s b/lld/test/ELF/conflict-debug-variable2.s
index fe134f49730d..2b5ea882012e 100644
--- a/lld/test/ELF/conflict-debug-variable2.s
+++ b/lld/test/ELF/conflict-debug-variable2.s
@@ -7,14 +7,14 @@
# INPUT-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000027] = "foo")
# INPUT-NEXT: DW_AT_type [DW_FORM_ref4] (cu + 0x0033 => {0x00000033} "int")
# INPUT-NEXT: DW_AT_external [DW_FORM_flag_present] (true)
-# INPUT-NEXT: DW_AT_decl_file [DW_FORM_data1] ("/home{{[/\\]}}path{{[/\\]}}test.c")
+# INPUT-NEXT: DW_AT_decl_file [DW_FORM_data1] ("/home{{(/|\\)}}path{{(/|\\)}}test.c")
# INPUT-NEXT: DW_AT_decl_line [DW_FORM_data1] (1)
# INPUT-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_addr 0x0)
# INPUT: DW_TAG_variable
# INPUT-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000002f] = "bar")
# INPUT-NEXT: DW_AT_type [DW_FORM_ref4] (cu + 0x0033 => {0x00000033} "int")
# INPUT-NEXT: DW_AT_external [DW_FORM_flag_present] (true)
-# INPUT-NEXT: DW_AT_decl_file [DW_FORM_data1] ("/home{{[/\\]}}path{{[/\\]}}test.c")
+# INPUT-NEXT: DW_AT_decl_file [DW_FORM_data1] ("/home{{(/|\\)}}path{{(/|\\)}}test.c")
# INPUT-NEXT: DW_AT_decl_line [DW_FORM_data1] (2)
# INPUT-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_addr 0x0)
diff --git a/lld/test/wasm/debuginfo.test b/lld/test/wasm/debuginfo.test
index 039a051f44fa..f6aae5a6c2fd 100644
--- a/lld/test/wasm/debuginfo.test
+++ b/lld/test/wasm/debuginfo.test
@@ -16,13 +16,13 @@ CHECK-NEXT: DW_AT_low_pc
CHECK-NEXT: DW_AT_high_pc
CHECK-NEXT: DW_AT_frame_base
CHECK-NEXT: DW_AT_name ("test")
-CHECK-NEXT: DW_AT_decl_file ("/Users{{[/\\]}}yury{{[/\\]}}llvmwasm{{(/|\\)}}hi.c")
+CHECK-NEXT: DW_AT_decl_file ("/Users{{(/|\\)}}yury{{(/|\\)}}llvmwasm{{(/|\\)}}hi.c")
CHECK-NEXT: DW_AT_decl_line (3)
CHECK-NEXT: DW_AT_prototyped (true)
CHECK: DW_TAG_formal_parameter
CHECK-NEXT: DW_AT_name ("t")
-CHECK-NEXT: DW_AT_decl_file ("/Users{{[/\\]}}yury{{[/\\]}}llvmwasm{{(/|\\)}}hi.c")
+CHECK-NEXT: DW_AT_decl_file ("/Users{{(/|\\)}}yury{{(/|\\)}}llvmwasm{{(/|\\)}}hi.c")
CHECK-NEXT: DW_AT_decl_line (3)
CHECK: DW_TAG_subprogram
@@ -30,7 +30,7 @@ CHECK-NEXT: DW_AT_low_pc
CHECK-NEXT: DW_AT_high_pc
CHECK-NEXT: DW_AT_frame_base
CHECK-NEXT: DW_AT_name ("_start")
-CHECK-NEXT: DW_AT_decl_file ("/Users{{[/\\]}}yury{{[/\\]}}llvmwasm{{(/|\\)}}hi.c")
+CHECK-NEXT: DW_AT_decl_file ("/Users{{(/|\\)}}yury{{(/|\\)}}llvmwasm{{(/|\\)}}hi.c")
CHECK-NEXT: DW_AT_decl_line (7)
CHECK: DW_TAG_base_type
More information about the llvm-commits
mailing list