Adding function calls before and after a CALL_EXPR

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

 



Hi

I am trying to add two function calls before and after a CALL_EXPR
To do this I use bsi_insert_before and bsi_insert_after

But I am having an issue having both of these working in the same pass.
I can make bsi_insert_before or bsi_insert_after work independently.


To make them work together I use
            if (fndecl)
            {
                bsi_insert_before (&block_iterator1, fndecl, BSI_SAME_STMT);
            }

            if (fndecl2)
            {
                bsi_insert_after (&block_iterator1, fndecl2, BSI_NEW_STMT);
            }

in the basic block iterator loop

Can someone suggest what may be going wrong?



-- 
Regards,

Saleel Kudchadker
Graduate Student
School of Computing , Informatics and Decision Systems
Arizona State University

[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