summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2019-10-26 12:10:31 +0800
committerJohn Hodge <tpg@mutabah.net>2019-10-26 12:10:31 +0800
commit73353e9776562e47091f7d7aa9ecbc81c33a4d25 (patch)
tree789d9129cb6c31f662b86993b9986014f12d8b5c /scripts
parent6a2e3b6a095a9a1acdccf4edee4ba3900ce6489a (diff)
downloadmrust-73353e9776562e47091f7d7aa9ecbc81c33a4d25.tar.gz
scripts - Tweak formatting (and support) for `log_get_last_function.py`
Diffstat (limited to 'scripts')
-rw-r--r--scripts/log_get_last_function.py7
1 files changed, 6 insertions, 1 deletions
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 = []