gen-pass-instances.awk: Rename len_of_end to len_of_close in handle_line
authorTom de Vries <tom@codesourcery.com>
Thu, 12 Nov 2015 07:31:22 +0000 (07:31 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 12 Nov 2015 07:31:22 +0000 (07:31 +0000)
2015-11-12  Tom de Vries  <tom@codesourcery.com>

* gen-pass-instances.awk (handle_line): Rename len_of_end to
len_of_close.

From-SVN: r230210

gcc/ChangeLog
gcc/gen-pass-instances.awk

index 535c0cfcf0a8e27341684aa387c250693fc58f09..fa468c8e9e4c2829dd4246dfbee202e680b01b88 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-12  Tom de Vries  <tom@codesourcery.com>
+
+       * gen-pass-instances.awk (handle_line): Rename len_of_end to
+       len_of_close.
+
 2015-11-12  Tom de Vries  <tom@codesourcery.com>
 
        * gen-pass-instances.awk (handle_line): Add len_of_call variable.
index 70b00b7655ddf1a6bec88c3942b1ff3322cfaff7..7624959083051d16beda50a1fb3c3f43520d50aa 100644 (file)
@@ -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)