<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 19, 2018 at 12:55 PM, Daniel Berlin via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dberlin added a comment.<br>
<br>
I like the idea here a lot, but i don't understand why you need to make a  new type of graph traits with things called call_edge_begin/end.<br>
Can you explain the necessity here?<br>
(IE why can you just not implement a graphtraits, why do you need a callgraphtraits)<br></blockquote><div>call_edge_begin/end can be moved to GraphTraits (and renamed as edge_begin/end) as it makes sense for any graph and not just a call graph. But has_function_def(Noderef) is a call graph specific trait. I could eliminate this and have a callback for this but I felt this looks cleaner. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D42311" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D42311</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>