[llvm-dev] Dwarf.h & Dwarf.def & Dwarf.cpp doesn't belong to Supoort, belogns to DebugInfo.

Reid Kleckner via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 23 08:34:46 PST 2016


On Wed, Nov 23, 2016 at 2:56 AM, 罗勇刚(Yonggang Luo) via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On Tue, Nov 15, 2016 at 11:28 PM, David Blaikie <dblaikie at gmail.com>
> wrote:
>
>> libDebugInfo is for generating DWARF, Dwarf.h et al are just for the
>> DWARF constants.
>>
>> 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.
>>
>> If that's the case, Why PDB doesn't have the same thing?
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161123/1d599e7d/attachment.html>


More information about the llvm-dev mailing list