[llvm] 013116c - Use {LITERAL} instead of regex escaping in some lit tests. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 14 02:55:17 PST 2022
Author: Jay Foad
Date: 2022-01-14T10:55:00Z
New Revision: 013116cd7077bdab2167196486c334080396f6fd
URL: https://github.com/llvm/llvm-project/commit/013116cd7077bdab2167196486c334080396f6fd
DIFF: https://github.com/llvm/llvm-project/commit/013116cd7077bdab2167196486c334080396f6fd.diff
LOG: Use {LITERAL} instead of regex escaping in some lit tests. NFC.
Added:
Modified:
llvm/test/TableGen/foreach-leak.td
llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types_handcrafted.s
Removed:
################################################################################
diff --git a/llvm/test/TableGen/foreach-leak.td b/llvm/test/TableGen/foreach-leak.td
index cc8ca898d0127..e923bdbac5a2f 100644
--- a/llvm/test/TableGen/foreach-leak.td
+++ b/llvm/test/TableGen/foreach-leak.td
@@ -7,7 +7,7 @@
// CHECK: --- Defs ---
// CHECK: def C0 {
-// CHECK: list<list<int>> ret = {{\[}}[1, 2, 3], [1, 2, 3]];
+// CHECK{LITERAL}: list<list<int>> ret = [[1, 2, 3], [1, 2, 3]];
// CHECK: }
// The variable name 'a' is used both in the "inner" and in the "outer" foreach.
diff --git a/llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types_handcrafted.s b/llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types_handcrafted.s
index 875395e634c17..1b584ec2f52a8 100644
--- a/llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types_handcrafted.s
+++ b/llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types_handcrafted.s
@@ -11,16 +11,16 @@
# Testing with a default lower bound of 0 and the following explicit bounds:
# lower_bound(1)
# CHECK-NOT: {{.}}
-# CHECK-SAME: {{\[}}[1, ?)]
+# CHECK-SAME{LITERAL}: [[1, ?)]
# upper_bound(2)
# CHECK-NOT: {{.}}
# CHECK-SAME: [3]
# lower(1) and upper(2)
# CHECK-NOT: {{.}}
-# CHECK-SAME: {{\[}}[1, 3)]
+# CHECK-SAME{LITERAL}: [[1, 3)]
# lower(1) and count(3)
# CHECK-NOT: {{.}}
-# CHECK-SAME: {{\[}}[1, 4)]
+# CHECK-SAME{LITERAL}: [[1, 4)]
# lower(0) and count(4) - testing that the lower bound matching language
# default is not rendered
# CHECK-NOT: {{.}}
@@ -29,7 +29,7 @@
# CHECK-SAME: [2]
# no attributes
# CHECK-NOT: {{.}}
-# CHECK-SAME: []{{"\)$}}
+# CHECK-SAME: []"){{$}}
# array_type with a language with a default lower bound of 1 instead of 0 and
# an upper bound of 2. This describes an array with 2 elements (whereas with a
More information about the llvm-commits
mailing list