From 73353e9776562e47091f7d7aa9ecbc81c33a4d25 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 26 Oct 2019 12:10:31 +0800 Subject: scripts - Tweak formatting (and support) for `log_get_last_function.py` --- scripts/log_get_last_function.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/log_get_last_function.py') diff --git a/scripts/log_get_last_function.py b/scripts/log_get_last_function.py index 9e21d7cf..3a54d9c5 100644 --- a/scripts/log_get_last_function.py +++ b/scripts/log_get_last_function.py @@ -11,7 +11,12 @@ def main(): fcn_lines = [] found_fcn = False for line in args.logfile: - if 'visit_function: ' in line or 'Trans_Monomorphise_List: ' in line or 'Trans_Codegen: FUNCTION CODE' in line or 'Trans_Codegen- emit_' in line: + if 'visit_function: ' in line \ + or 'evaluate_constant: ' in line \ + or 'Trans_Monomorphise_List: ' in line \ + or 'Trans_Codegen: FUNCTION CODE' in line \ + or 'Trans_Codegen- emit_' in line \ + : if found_fcn: break fcn_lines = [] -- cgit v1.2.3