diff options
author | Nikita Popov <npopov@redhat.com> | 2023-01-24 15:32:31 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-03-02 09:59:22 +0100 |
commit | a26d3031cf89954d030e494d47ca6653d531dc82 (patch) | |
tree | 05fc907d56c9f873ede621a7a76c5e82d05d1f0b /llvm/utils/UpdateTestChecks/asm.py | |
parent | f7ca01333214f934c580c162afdee933e7430b6c (diff) | |
download | llvm-a26d3031cf89954d030e494d47ca6653d531dc82.zip llvm-a26d3031cf89954d030e494d47ca6653d531dc82.tar.gz llvm-a26d3031cf89954d030e494d47ca6653d531dc82.tar.bz2 |
[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
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |