From: Tom de Vries Date: Thu, 12 Nov 2015 07:31:22 +0000 (+0000) Subject: gen-pass-instances.awk: Rename len_of_end to len_of_close in handle_line X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d3e64f727b96bd6bb5e9819ed5b091b60cb97f0;p=gcc.git gen-pass-instances.awk: Rename len_of_end to len_of_close in handle_line 2015-11-12 Tom de Vries * gen-pass-instances.awk (handle_line): Rename len_of_end to len_of_close. From-SVN: r230210 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 535c0cfcf0a..fa468c8e9e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-12 Tom de Vries + + * gen-pass-instances.awk (handle_line): Rename len_of_end to + len_of_close. + 2015-11-12 Tom de Vries * gen-pass-instances.awk (handle_line): Add len_of_call variable. diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk index 70b00b7655d..76249590830 100644 --- a/gcc/gen-pass-instances.awk +++ b/gcc/gen-pass-instances.awk @@ -54,8 +54,9 @@ function handle_line() len_of_call = RLENGTH; len_of_start = length("NEXT_PASS ("); - len_of_end = length(")"); - len_of_pass_name = len_of_call - (len_of_start + len_of_end); + len_of_close = length(")"); + + len_of_pass_name = len_of_call - (len_of_start + len_of_close); pass_starts_at = where + len_of_start; pass_name = substr(line, pass_starts_at, len_of_pass_name); if (pass_name in pass_counts)