summaryrefslogtreecommitdiff
path: root/gcc/gen-pass-instances.awk
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-13 13:40:37 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-13 13:40:37 +0000
commit7dadcfe1ef0c20fa8554cd7fa91c61f718e9d507 (patch)
tree42bab66b8de41d997d4e5984568a80f882dcf6d1 /gcc/gen-pass-instances.awk
parent944f4d7ad83cde401d9acdf5ae0d64d5d80a24b7 (diff)
downloadgcc-7dadcfe1ef0c20fa8554cd7fa91c61f718e9d507.tar.gz
gen-pass-instances.awk: Add args_str var in handle_line
2015-11-13 Tom de Vries <tom@codesourcery.com> * gen-pass-instances.awk (handle_line): Add args_str variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230319 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gen-pass-instances.awk')
-rw-r--r--gcc/gen-pass-instances.awk13
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk
index cbfaa8674d5..88bbb4daf1d 100644
--- a/gcc/gen-pass-instances.awk
+++ b/gcc/gen-pass-instances.awk
@@ -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