aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 178c623..a5d4375 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -878,12 +878,17 @@ class FunctionTestBuilder:
return False
def process_run_line(self, function_re, scrubber, raw_tool_output, prefixes):
+ """
+ Returns the number of functions processed from the output by the regex.
+ """
build_global_values_dictionary(
self._global_var_dict, raw_tool_output, prefixes, self._ginfo
)
+ processed_func_count = 0
for m in function_re.finditer(raw_tool_output):
if not m:
continue
+ processed_func_count += 1
func = m.group("func")
body = m.group("body")
# func_name_separator is the string that is placed right after function name at the
@@ -1000,6 +1005,7 @@ class FunctionTestBuilder:
# preprocesser directives to exclude individual functions from some
# RUN lines.
self._func_dict[prefix][func] = None
+ return processed_func_count
def processed_prefixes(self, prefixes):
"""