From 5747f9d3e9f3a49c27984b9341e123b9ca82e741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Sat, 23 Dec 2023 14:20:43 +0100 Subject: update_test_checks: simplify get_ir_regex The match argument isn't used. --- llvm/utils/UpdateTestChecks/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/utils/UpdateTestChecks/common.py') diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index 72d21cf..a3365fe 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -947,7 +947,7 @@ class NamelessValue: return re.search(self.ir_prefix, match[0])[0], self.check_prefix # Return the IR regexp we use for this kind or IR value, e.g., [\w.-]+? for locals - def get_ir_regex_from_ir_value_re_match(self, match): + def get_ir_regex(self): # for backwards compatibility we check locals with '.*' if self.is_local_def_ir_value(): return ".*" @@ -988,7 +988,7 @@ class NamelessValue: regex = "" # always capture a number in the default format capture_start = "[[#" else: - regex = self.get_ir_regex_from_ir_value_re_match(match) + regex = self.get_ir_regex() capture_start = "[[" if self.is_local_def_ir_value(): return capture_start + varname + ":" + prefix + regex + "]]" -- cgit v1.1