[llvm-dev] Get root node of CallGraph

Riyad Parvez via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 8 17:44:45 PST 2015


On Tue, Dec 8, 2015 at 4:26 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:

> 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.
>
>
I want to topologically sort the call graph, just to have a sense of
dependency between functions.


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


More information about the llvm-dev mailing list