Commit b2a3c016 by Tom de Vries Committed by Tom de Vries

gen-pass-instances.awk: Rename var where to call_starts_at in handle_line

2015-11-12  Tom de Vries  <tom@codesourcery.com>

	* gen-pass-instances.awk (handle_line): Rename var where to
	call_starts_at.

From-SVN: r230218
parent b1a82751
2015-11-12 Tom de Vries <tom@codesourcery.com>
* gen-pass-instances.awk (handle_line): Rename var where to
call_starts_at.
2015-11-12 Claudiu Zissulescu <claziss@synopsys.com> 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (gen_compare_reg): Swap operands also when we * config/arc/arc.c (gen_compare_reg): Swap operands also when we
...@@ -43,8 +43,8 @@ function handle_line() ...@@ -43,8 +43,8 @@ function handle_line()
line = $0; line = $0;
# Find call expression. # Find call expression.
where = match(line, /NEXT_PASS \((.+)\)/); call_starts_at = match(line, /NEXT_PASS \((.+)\)/);
if (where == 0) if (call_starts_at == 0)
{ {
print line; print line;
return; return;
...@@ -59,7 +59,7 @@ function handle_line() ...@@ -59,7 +59,7 @@ function handle_line()
# Find pass_name argument # Find pass_name argument
len_of_pass_name = len_of_call - (len_of_start + len_of_close); len_of_pass_name = len_of_call - (len_of_start + len_of_close);
pass_starts_at = where + len_of_start; pass_starts_at = call_starts_at + len_of_start;
pass_name = substr(line, pass_starts_at, len_of_pass_name); pass_name = substr(line, pass_starts_at, len_of_pass_name);
# Find call expression prefix (until and including called function) # Find call expression prefix (until and including called function)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment