diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2019-11-01 11:17:27 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2019-11-01 11:34:00 -0500 |
commit | e67f6477fd1ed29acbeddf8482c25d8db826912f (patch) | |
tree | 68fe5f7d4b015c789b8679c8c51c0a51af41cbc3 /llvm/utils/UpdateTestChecks/common.py | |
parent | 3a399c098782c8d251c136fafa06be97cbf5d99c (diff) | |
download | llvm-e67f6477fd1ed29acbeddf8482c25d8db826912f.zip llvm-e67f6477fd1ed29acbeddf8482c25d8db826912f.tar.gz llvm-e67f6477fd1ed29acbeddf8482c25d8db826912f.tar.bz2 |
[Utils] Hide the default behavior change of D68819 under a flag
With D69701, the options used when running the script on a file will be
recorded and reused on a rerun. This allows us to hide new features
behind flags, starting with the "define" that was introduced in D68819.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index 9da8619..8a86444 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -305,9 +305,9 @@ def add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name, break def add_ir_checks(output_lines, comment_marker, prefix_list, func_dict, - func_name, preserve_names): + func_name, preserve_names, function_sig): # 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'.format(comment_marker, function_def_regex) add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name, check_label_format, False, preserve_names) |