aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-12-13 09:13:39 +0100
committerNikita Popov <npopov@redhat.com>2022-12-13 09:15:35 +0100
commit697bfa40a3f853d8b9103ead53cd80a4f7c5a7df (patch)
tree7ce5f90b8e7336571653c2e21434a37bb88fea40 /llvm/utils/UpdateTestChecks/common.py
parent31521563345c527ac74febcab22e65e55477637b (diff)
downloadllvm-697bfa40a3f853d8b9103ead53cd80a4f7c5a7df.zip
llvm-697bfa40a3f853d8b9103ead53cd80a4f7c5a7df.tar.gz
llvm-697bfa40a3f853d8b9103ead53cd80a4f7c5a7df.tar.bz2
Revert "[UpdateTestChecks] Match define for labels"
This reverts commit a888825aeef8d6592c6cf5f4e5854cc39af49633. This changes the default output of UTC, and as such introduces spurious changes whenever existing tests are regenerated. I've indicated in https://reviews.llvm.org/D139006#3989954 how this can be implemented without causing test churn.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 7a66229..6a2c2f4 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1028,7 +1028,7 @@ def add_ir_checks(output_lines, comment_marker, prefix_list, func_dict,
func_name, preserve_names, function_sig,
global_vars_seen_dict, is_filtered):
# Label format is based on IR string.
- function_def_regex = 'define {{[^@]+}}'
+ function_def_regex = 'define {{[^@]+}}' if function_sig else ''
check_label_format = '{} %s-LABEL: {}@%s%s%s'.format(comment_marker, function_def_regex)
return add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name,
check_label_format, False, preserve_names, global_vars_seen_dict,