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
This commit is contained in:
Tom de Vries 2015-11-12 10:02:40 +00:00 committed by Tom de Vries
parent b1a827517a
commit b2a3c016f3
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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>
* config/arc/arc.c (gen_compare_reg): Swap operands also when we

View File

@ -43,8 +43,8 @@ function handle_line()
line = $0;
# Find call expression.
where = match(line, /NEXT_PASS \((.+)\)/);
if (where == 0)
call_starts_at = match(line, /NEXT_PASS \((.+)\)/);
if (call_starts_at == 0)
{
print line;
return;
@ -59,7 +59,7 @@ function handle_line()
# 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_starts_at = call_starts_at + len_of_start;
pass_name = substr(line, pass_starts_at, len_of_pass_name);
# Find call expression prefix (until and including called function)