<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 4:26 PM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><span class=""><br><div><blockquote type="cite"><div>On Dec 8, 2015, at 8:38 AM, Riyad Parvez via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr">Hi,<div><br></div><div>There is a "Root" private member in <a href="http://llvm.org/docs/doxygen/html/CallGraph_8h_source.html#l00192" target="_blank">CallGraph</a> 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.</div></div></div></blockquote><div><br></div><div><br></div></div></span>What is your use case? It may be possible to add an accessor.</div><div><br></div></div></blockquote><div><br></div><div>I want to topologically sort the call graph, just to have a sense of dependency between functions.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div></div><div>— </div><span class="HOEnZb"><font color="#888888"><div>Mehdi</div><div><br></div></font></span></div></blockquote></div><br></div></div>