From a26d3031cf89954d030e494d47ca6653d531dc82 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 24 Jan 2023 15:32:31 +0100 Subject: [UTC] Include return type/attributes under --version 2 If --function-signature is used with --version 2, then also include the return type/attributes in the check lines. This is the implementation of D133943 rebased on the --version mechanism from D142473. This doesn't bump the default version yet, because I'd like to do that together with D140212 (which enables --function-signature by default), as these changes seem closely related. For now this functionality can be accessed by explicitly passing --version 2 to UTC. Fixes https://github.com/llvm/llvm-project/issues/61058. Differential Revision: https://reviews.llvm.org/D144963 --- llvm/utils/UpdateTestChecks/asm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/utils/UpdateTestChecks/asm.py') diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index e24197f..697d3ee 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -534,7 +534,7 @@ def get_run_handler(triple): def add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name, global_vars_seen_dict, is_filtered): # Label format is based on ASM string. - check_label_format = '{} %s-LABEL: %s%s%s'.format(comment_marker) + check_label_format = '{} %s-LABEL: %s%s%s%s'.format(comment_marker) return common.add_checks(output_lines, comment_marker, prefix_list, func_dict, - func_name, check_label_format, True, False, + func_name, check_label_format, True, False, 1, global_vars_seen_dict, is_filtered=is_filtered) -- cgit v1.1