Re: Retrieve GENERIC function body in plugin

2012-10-24 Thread Peter Colberg
On Wed, Oct 24, 2012 at 12:55:23PM -0400, Peter Colberg wrote: > The plugin registers a callback to PLUGIN_FINISH_UNIT, and therein > retrieves function_decl nodes of the current translation unit by > iterating over cgraph_nodes. However, getting the function body > using DECL_SAVED_TREE(node) alwa

Retrieve GENERIC function body in plugin

2012-10-24 Thread Peter Colberg
Hi, I am writing a plugin to analyse C code by walking the AST in GENERIC format, and have trouble getting the body of function declarations. The plugin registers a callback to PLUGIN_FINISH_UNIT, and therein retrieves function_decl nodes of the current translation unit by iterating over cgraph_n