From 649bdfef2e9156c8f780f8162747a00f6714a8c0 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Thu, 31 Oct 2019 13:37:34 -0500 Subject: [PATCH] [Utils][FIX] Unbreak update_XXX_test_checks after 3598b810029d The users of build_function_body_dictionary and add_checks need to be adjusted after the changes in UpdateTestChecks/common.py. --- utils/UpdateTestChecks/asm.py | 4 ++-- utils/update_cc_test_checks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/UpdateTestChecks/asm.py b/utils/UpdateTestChecks/asm.py index 81556d65802..2c9f4d9c506 100644 --- a/utils/UpdateTestChecks/asm.py +++ b/utils/UpdateTestChecks/asm.py @@ -354,11 +354,11 @@ def build_function_body_dictionary_for_triple(args, raw_tool_output, triple, pre scrubber, function_re = handler common.build_function_body_dictionary( function_re, scrubber, [args], raw_tool_output, prefixes, - func_dict, args.verbose) + func_dict, args.verbose, False) ##### Generator of assembly CHECK lines def add_asm_checks(output_lines, comment_marker, prefix_list, func_dict, func_name): # Label format is based on ASM string. - check_label_format = '{} %s-LABEL: %s:'.format(comment_marker) + check_label_format = '{} %s-LABEL: %s%s:'.format(comment_marker) common.add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name, check_label_format, True, False) diff --git a/utils/update_cc_test_checks.py b/utils/update_cc_test_checks.py index 82959e53b36..14d5cc36359 100755 --- a/utils/update_cc_test_checks.py +++ b/utils/update_cc_test_checks.py @@ -160,7 +160,7 @@ def get_function_body(args, filename, clang_args, extra_commands, prefixes, trip if '-emit-llvm' in clang_args: common.build_function_body_dictionary( common.OPT_FUNCTION_RE, common.scrub_body, [], - raw_tool_output, prefixes, func_dict, args.verbose) + raw_tool_output, prefixes, func_dict, args.verbose, False) else: print('The clang command line should include -emit-llvm as asm tests ' 'are discouraged in Clang testsuite.', file=sys.stderr)