On Mon, Jan 21, 2013 at 6:31 AM, Chassin <chas...@ceis.cujae.edu.cu> wrote:
> Hi ,i am developing a simple plugin that allows me to delete a node from the
> cgraph that match a specific pattern but when i delete the node using
> cgraph_remove_node , it seams to delete it ( by printing the cgraph again it
> doesn't appear ) , but in the compiled file it exist ???? my plugin is
> attached to PLUGIN_ALL_PASSES_END event . can any one explain why this is
> happening and what should i do to fix this issues ?

The callgraph isn't the main data structure to modify here.  You probably still
have references to the function in the IL via calls for example.  You probably
want to remove all calls to the cgraph node.

Richard.

> Thnx in advance .
>
> --
> Chaddy Huussin Vazquez , chas...@ceis.cujae.edu.cu
>
> Superior Polytechnic Institute ‘Jose Antonio Echeverrıa’
> Informatics Engineering Faculty
>
>
>
> 48 Aniversario del Instituto Superior Politecnico Jose Antonio Echeverria,
> Cujae
> Una obra de la Revolucion Cubana | 2 de diciembre de 1964 |
> http://cujae.edu.cu
>
>
>
> Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu

Reply via email to