<div dir="ltr">Pretty good with the basic idea, few comments:<div><br></div><div><div>-  OwningPtr<DIContext> dictx(DIContext::getDWARFContext(Obj.get()));</div><div>+  OwningPtr<DIContext> DICtx(DIContext::getDWARFContext(Obj.get()));</div>
</div><div><br></div><div style>Seems somewhat gratuitous.</div><div style><br></div><div style>+void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {<br></div><div style><br></div><div style>I'd kind of like this to have DumpType with a default arg of all.</div>
<div style><br></div><div style>For a list of options I'd take start with one per section name (including the dwo sections).</div><div style><br></div><div style>Needs tests.</div><div style><br></div><div style>Thanks!</div>
<div style><br></div><div style>-eric</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 3:19 PM, Eli Bendersky <span dir="ltr"><<a href="mailto:eliben@google.com" target="_blank">eliben@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
[Eric: we discussed the background on IRS. Here for completeness].<br>
<br>
I plan to add some additional dumping options to llvm-dwarfdump. As<br>
part of the preparation work, I'd like to be able to specify which<br>
sections it should dump (at the moment all sections are dumped).<br>
<br>
The attached patch is a proof-of-concept just to demonstrate the<br>
direction. The default behavior remains what it was, but now a couple<br>
of sections can be selected specifically with a flag. If this seems<br>
reasonable, I'll go ahead and expand it for all currently supported<br>
options prior to committing it.<br>
<br>
PTAL,<br>
<br>
Eli<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>