On Thu, 2020-02-06 at 13:49 +0100, Martin Jambor wrote:
> Hi,
> 
> On Wed, Feb 05 2020, David Malcolm wrote:
> > Answering my own question, calling ultimate_alias_target on the
> > __ct_comp cgraph_node seems to find the "right" cgraph_node.
> > 
> > Is that the right general-purpose answer here?
> > 
> 
> sounds like it.  If however you also want the function to
> look through thunks you should use cgraph_node::function_symbol()
> instead.  But thunks of course can modify the first parameter, return
> value etc.

Thanks.  I went with ultimate_alias_target for now; FWIW the patch in
question is:
  https://gcc.gnu.org/ml/gcc-patches/2020-02/msg00398.html


Dave

Reply via email to