<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 23, 2011, at 12:03 AM, Talin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Just a follow up on this - I am still having problems, I never did figure out a solution. (I've been running with debug off for the last month so that I could get work done.)<div><br></div><div>Here's what I am seeing: I am definitely calling DIBuilder::finalize(). I even put a debug print statement right after it, so that I could be sure that the code was being executed. I also insured that it was getting called before the module was written out, and that no additional debug information gets added after it has been called.</div>
<div><br></div><div>Yet despite this, the second-to-last parameter for DW_TAG_subprogram metadata is in fact null in the module dissassembly.</div><div><br></div><div>So essentially I am completely stumped.</div></blockquote><br></div><div>If you're using DIBuilder to create your subprogram then you'll see that it puts new node in AllSubprograms.</div><div><br></div><div><div><font class="Apple-style-span" face="Monaco" style="font-size: 11px;"> // Create a named metadata so that we do not lose this mdnode. </font></div><div><font class="Apple-style-span" face="Monaco" style="font-size: 11px;"> AllSubprograms.push_back(Node);</font></div><div><br></div></div>And follow AllSubprograms in DIBuilder::finalize()<div><br></div><div>-</div><div>Devang</div></body></html>