<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Given that LLVM has no current support for outlining I don't think<br>

> we've addressed the issue of how to represent that in LLVM's IR<br>
> metadata (indeed I don't even know off-hand how DWARF handles this).<br>
><br>
><br>
><br>
<br>
</div>How do we do this for C++ lambdas and friends?<br></blockquote><div><br></div><div>Given that lambdas are separate functions (standard "operator()" member functions of some unnameable type (but we have a name for the purposes of mangling and debugging ("<lambda:foo.cpp:32>" or something like that, if I recall correctly))) and the lines of that function just happen to be nested within the lines of some other function (but debug info doesn't really care that the outer function has a non-contiguous range of lines anymore than if you had a bunch of blank lines in your function)<br>
<br>So we can't really draw analogy from there to help with outlining, I don't think.</div></div></div></div>