diff options
author | Olatunji Ruwase <tjruwase@google.com> | 2009-06-29 21:17:40 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2009-06-29 21:17:40 +0000 |
commit | 78bf7bd0fc9a82aff98874e0ff3e12a329f920ab (patch) | |
tree | 63398d650a9579870dc5c29493d49d49e66f87cb /gcc/gcc-plugin.h | |
parent | 20460eb94863954cf7ebdc7bf2193038ac0b781a (diff) | |
download | gcc-78bf7bd0fc9a82aff98874e0ff3e12a329f920ab.tar.gz |
plugins.texi: Document PLUGIN_START_UNIT.
2009-06-29 Olatunji Ruwase <tjruwase@google.com>
* doc/plugins.texi: Document PLUGIN_START_UNIT.
* toplev.c (compile_file): Call PLUGIN_START_UNIT.
* gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
* plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
(register_callback): Handle PLUGIN_START_UNIT.
(invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
From-SVN: r149064
Diffstat (limited to 'gcc/gcc-plugin.h')
-rw-r--r-- | gcc/gcc-plugin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gcc-plugin.h b/gcc/gcc-plugin.h index 1588bca372c..9fbdc91af25 100644 --- a/gcc/gcc-plugin.h +++ b/gcc/gcc-plugin.h @@ -41,6 +41,7 @@ enum plugin_event PLUGIN_GGC_END, /* Called at end of GGC. */ PLUGIN_REGISTER_GGC_ROOTS, /* Register an extra GGC root table. */ PLUGIN_ATTRIBUTES, /* Called during attribute registration. */ + PLUGIN_START_UNIT, /* Called before processing a translation unit. */ PLUGIN_EVENT_LAST /* Dummy event used for indexing callback array. */ }; |