Skip to content

Commit

Permalink
scripts - Tweak formatting (and support) for log_get_last_function.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Oct 26, 2019
1 parent 6a2e3b6 commit 73353e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/log_get_last_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 73353e9

Please sign in to comment.