On Fri, Feb 18, 2011 at 1:52 PM, Renato Golin <span dir="ltr"><<a href="mailto:rengolin@systemcall.org">rengolin@systemcall.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On 18 February 2011 21:34, Talin <<a href="mailto:viridia@gmail.com">viridia@gmail.com</a>> wrote:<br>
> Sorry, I meant DIBuilder.<br>
<br>
DIBuilder is the new DIFactory. I've been playing with it this week<br>
and it's much easier and straightforward to use. I'm still having<br>
problems to create arrays, though.<br>
<br>
As far as I remember (from the 2010 meeting), the idea was to replace<br>
and deprecate DIFactory.<br>
<br>
I'm not saying we should do it now, just saying Clang should have no<br>
more deps on the old DIFactory to avoid header pollution, since it's<br>
only on one enum... ;)<br>
<br>
cheers,<br>
<font color="#888888">--renato<br>
</font></blockquote></div><div><br></div>A couple of other questions about DIBuilder:<div><br></div><div>1) I notice that there's no 'isMain' parameter to CreateCompileUnit. How do you specify the main module?</div>

<div><br></div><div>2) There's no means to set TheCU other than creating a new compile unit. This means that you have to generate all of the debug info for your module with a single DIBuilder instance, since there's no way to use a pre-existing compile unit.<br>

<br></div><div>-- <br>-- Talin<br>
</div>