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. Martin