[llvm-dev] Get root node of CallGraph

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 8 13:26:37 PST 2015


Hi,

> On Dec 8, 2015, at 8:38 AM, Riyad Parvez via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi,
> 
> There is a "Root" private member in CallGraph <http://llvm.org/docs/doxygen/html/CallGraph_8h_source.html#l00192> class. But there is no way to get access to that member. How can I do that? I can get CallGraphNode of "main" method. But I am curious is there more cleaner way.


What is your use case? It may be possible to add an accessor.

— 
Mehdi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151208/58b7f137/attachment.html>


More information about the llvm-dev mailing list