Proper way of modifying the AST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

What is the proper way of inserting a new node (such as a FUNCTION_DECL or VAR_DECL) into a C++ AST prior to being gimplified? There are some examples around that are using the following functions in various combinations to modify the AST;

	pushdecl
	gimplify_function_tree
	cgraph_node::finalize_function

but are those functions really appropriate for C++ DECLs? And Is it necessary to configure the scope, current_function_decl or other details?

Any help, pointers and explanation of the matter appreciated.

Regards,
Chris



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux