This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Plugin Development CLEANUP_POINT_EXPR
On Sat, Aug 4, 2012 at 6:44 AM, <mario.miller@web.de> wrote:
>
> When I parse the doSth method I get two CLEANUP_POINT_EXPR.
> I don't really know what to do with this, and the header files don't help me either.
> How can I use the CLEANUP_POINT_EXPR to get the function call to getA()?
Given a CLEANUP_POINT_EXPR x, look at TREE_OPERAND (x, 0) to see the
body. A CLEANUP_POINT_EXPR executes the body, with special treatment
for any WITH_CLEANUP_EXPR expressions it contains.
See tree.def for this kind of information.
Ian