[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:
> On Dec 8, 2015, at 8:38 AM, Riyad Parvez via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
> 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
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev