This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gcc-plugin] hooking function declarations...


On Thursday 08 April 2010 09:06:54 PaweÅ Sikora wrote:
> hi,
> 
> i'm working on some gcc plugin and need to access all declarations
> for function and classes. hooking on plugin_finish_type and
> plugin_pre_genericize
> gives me afaics only record_trees for declared classes.
> how can i obtain (in easiest way) function decls?

i should notice that i'm compiling only external library *header*
and in such case the plugin_pre_genericize isn't invoked.
afaics plugin_pre_genericize is invoked for classic translation unit.
is it a lack of implemenation in header-precompilation machinery?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]