From: Tom de Vries Date: Fri, 13 Nov 2015 13:40:46 +0000 (+0000) Subject: gen-pass-instances.awk: Rename prefix_len var to len_of_prefix in handle_line X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77f9c814ec10a88fe694c37fbfa168f28bf2f57a;p=gcc.git 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 --- 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;