From 77f9c814ec10a88fe694c37fbfa168f28bf2f57a Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 13 Nov 2015 13:40:46 +0000 Subject: [PATCH] gen-pass-instances.awk: Rename prefix_len var to len_of_prefix in handle_line 2015-11-13 Tom de Vries * gen-pass-instances.awk (handle_line): Rename prefix_len var to len_of_prefix. From-SVN: r230320 --- gcc/ChangeLog | 5 +++++ gcc/gen-pass-instances.awk | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dab7d176e49..d616203793a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-13 Tom de Vries + + * gen-pass-instances.awk (handle_line): Rename prefix_len var to + len_of_prefix. + 2015-11-13 Tom de Vries * gen-pass-instances.awk (handle_line): Add args_str variable. diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk index 88bbb4daf1d..9cff4297388 100644 --- a/gcc/gen-pass-instances.awk +++ b/gcc/gen-pass-instances.awk @@ -66,8 +66,8 @@ function handle_line() pass_name = args_str; # Find call expression prefix (until and including called function) - prefix_len = args_start_at - 1 - len_of_open; - prefix = substr(line, 1, prefix_len); + len_of_prefix = args_start_at - 1 - len_of_open; + prefix = substr(line, 1, len_of_prefix); # Find call expression postfix postfix_starts_at = call_starts_at + len_of_call; -- 2.30.2