gen-pass-instances.awk: Add args_str var in handle_line
authorTom de Vries <tom@codesourcery.com>
Fri, 13 Nov 2015 13:40:37 +0000 (13:40 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 13 Nov 2015 13:40:37 +0000 (13:40 +0000)
2015-11-13  Tom de Vries  <tom@codesourcery.com>

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

From-SVN: r230319

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

index e62685e4d1159e0101e37c24c147ff790ea8de3b..dab7d176e49aa1cf7eb2938cadb40a152aa86817 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-13  Tom de Vries  <tom@codesourcery.com>
+
+       * gen-pass-instances.awk (handle_line): Add args_str variable.
+
 2015-11-13  Martin Liska  <mliska@suse.cz>
 
        * graphite-poly.c (free_scop): Release scop->drs vector.
index cbfaa8674d56bd6411a8b5ab51e7af767bc8f375..88bbb4daf1d56b081bc9a20c3660c41cdc1a9943 100644 (file)
@@ -57,13 +57,16 @@ function handle_line()
        len_of_open = length("(");
        len_of_close = length(")");
 
-       # Find pass_name argument
-       len_of_pass_name = len_of_call - (len_of_start + len_of_close);
-       pass_starts_at = call_starts_at + len_of_start;
-       pass_name = substr(line, pass_starts_at, len_of_pass_name);
+       # Find arguments
+       len_of_args = len_of_call - (len_of_start + len_of_close);
+       args_start_at = call_starts_at + len_of_start;
+       args_str = substr(line, args_start_at, len_of_args);
+
+       # Set pass_name argument
+       pass_name = args_str;
 
        # Find call expression prefix (until and including called function)
-       prefix_len = pass_starts_at - 1 - len_of_open;
+       prefix_len = args_start_at - 1 - len_of_open;
        prefix = substr(line, 1, prefix_len);
 
        # Find call expression postfix