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

* gen-pass-instances.awk (handle_line): Add comments.

From-SVN: r230211

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

index fa468c8e9e4c2829dd4246dfbee202e680b01b88..f35859552e7682c9a89a65f1e520dd63d6204436 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-12  Tom de Vries  <tom@codesourcery.com>
+
+       * gen-pass-instances.awk (handle_line): Add comments.
+
 2015-11-12  Tom de Vries  <tom@codesourcery.com>
 
        * gen-pass-instances.awk (handle_line): Rename len_of_end to
index 7624959083051d16beda50a1fb3c3f43520d50aa..3d5e8b6817a0ec2da0bc3e246aa3821d07fd0aa4 100644 (file)
@@ -56,13 +56,18 @@ function handle_line()
        len_of_start = length("NEXT_PASS (");
        len_of_close = length(")");
 
+       # Find pass_name argument
        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);
+
+       # Set pass_counts
        if (pass_name in pass_counts)
                pass_counts[pass_name]++;
        else
                pass_counts[pass_name] = 1;
+
+       # Print call expression with extra pass_num argument
        printf "%s, %s%s\n",
                substr(line, 1, pass_starts_at + len_of_pass_name - 1),
                pass_counts[pass_name],