diff options
author | Kees Cook <keescook@chromium.org> | 2017-01-14 01:09:35 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-01-14 01:20:03 +0300 |
commit | 5a45a4c5c3f5e36a03770deb102ca6ba256ff3d7 (patch) | |
tree | 0764f01c69440d5499223737496bbdecf05e3ca9 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 8d4973a1c01d4b38871fbc6631e1fdd20e6c9e90 (diff) | |
download | linux-5a45a4c5c3f5e36a03770deb102ca6ba256ff3d7.tar.xz |
gcc-plugins: consolidate on PASS_INFO macro
Now that PASS_INFO() exists, use it in the other existing gcc plugins,
instead of always open coding the same thing.
Based on updates to the grsecurity/PaX gcc plugins.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
-rw-r--r-- | scripts/gcc-plugins/cyc_complexity_plugin.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/gcc-plugins/cyc_complexity_plugin.c b/scripts/gcc-plugins/cyc_complexity_plugin.c index 8af7db06122d..1909ec617431 100644 --- a/scripts/gcc-plugins/cyc_complexity_plugin.c +++ b/scripts/gcc-plugins/cyc_complexity_plugin.c @@ -52,12 +52,8 @@ static unsigned int cyc_complexity_execute(void) __visible int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) { const char * const plugin_name = plugin_info->base_name; - struct register_pass_info cyc_complexity_pass_info; - cyc_complexity_pass_info.pass = make_cyc_complexity_pass(); - cyc_complexity_pass_info.reference_pass_name = "ssa"; - cyc_complexity_pass_info.ref_pass_instance_number = 1; - cyc_complexity_pass_info.pos_op = PASS_POS_INSERT_AFTER; + PASS_INFO(cyc_complexity, "ssa", 1, PASS_POS_INSERT_AFTER); if (!plugin_default_version_check(version, &gcc_version)) { error(G_("incompatible gcc/plugin versions")); |