<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 23, 2016 at 2:56 AM, 罗勇刚(Yonggang Luo)  via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Nov 15, 2016 at 11:28 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">libDebugInfo is for generating DWARF, Dwarf.h et al are just for the DWARF constants.<br><br>things like libIR don't need to generate debug info, so they don't depend on libDebugInfo - but they do use DWARF constants to encode debug info in the IR (the debug info metadata), so it's useful to have it in Support instead of having to pull in the full libDebugInfo dependency.</div><br></blockquote></span><div>If that's the case, Why PDB doesn't have the same thing? </div></div></div></div></blockquote><div><br></div><div>We don't use CodeView constants to encode LLVM IR debug info. We translate DWARF tags in the IR to the appropriate CV records and kinds.</div></div></div></div>