From b80b0fd9c7f6206708bc423d131b0365a7296736 Mon Sep 17 00:00:00 2001 From: Sriraman Tallam Date: Mon, 28 Sep 2009 23:15:35 +0000 Subject: tree-pass.h (register_pass_info): New structure. * tree-pass.h (register_pass_info): New structure. (pass_positioning_ops): Move enum from gcc-plugin.h. (register_pass): New function. * gcc-plugin.h (plugin_pass): Delete structure. (pass_positioning_ops): Delete enum. * plugin.c (regsiter_pass): Delete function. (position_pass): Delete function. (added_pass_nodes): Delete variable. (prev_added_pass_nodes): Delete variable. (pass_list_node): Delete structure. * passes.c (make_pass_instance): New function. (next_pass_1): Change to call make_pass_instance. (pass_list_node): Move structure from gcc-plugin.h. (added_pass_nodes): Move variable from plugin.c. (prev_added_pass_nodes): Move variable from plugin.c. (position_pass): New function. (register_pass): New function. From-SVN: r152257 --- gcc/gcc-plugin.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'gcc/gcc-plugin.h') diff --git a/gcc/gcc-plugin.h b/gcc/gcc-plugin.h index 84f0aed..1792c03 100644 --- a/gcc/gcc-plugin.h +++ b/gcc/gcc-plugin.h @@ -55,24 +55,6 @@ struct plugin_argument char *value; /* value is optional and can be NULL. */ }; -enum pass_positioning_ops -{ - PASS_POS_INSERT_AFTER, /* Insert after the reference pass. */ - PASS_POS_INSERT_BEFORE, /* Insert before the reference pass. */ - PASS_POS_REPLACE /* Replace the reference pass. */ -}; - -struct plugin_pass -{ - struct opt_pass *pass; /* New pass provided by the plugin. */ - const char *reference_pass_name; /* Name of the reference pass for hooking - up the new pass. */ - int ref_pass_instance_number; /* Insert the pass at the specified - instance number of the reference pass. - Do it for every instance if it is 0. */ - enum pass_positioning_ops pos_op; /* how to insert the new pass. */ -}; - /* Additional information about the plugin. Used by --help and --version. */ struct plugin_info -- cgit v1.1