[PATCH] D30206: [DWARF5] Emit new unit header

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 09:19:05 PST 2017


On Tue, Feb 21, 2017 at 9:14 AM Adrian Prantl via Phabricator <
reviews at reviews.llvm.org> wrote:

> aprantl added a comment.
>
> Thanks for getting this started!
>
>
>
> ================
> Comment at: include/llvm/Support/Dwarf.h:308
>
> +/// Constants for unit types in DWARF v5.
> +enum UnitType : unsigned char {
> ----------------
> We might want to unify the spelling of DWARF v5 vs. DWARF5
>
>
> ================
> Comment at: include/llvm/Support/Dwarf.h:316
> +
>  // Constants for the DWARF5 Accelerator Table Proposal
>  enum AcceleratorTable {
> ----------------
> as seen here :-)
>
>
> ================
> Comment at: lib/DebugInfo/DWARF/DWARFUnit.cpp:99
> +    AddrSize = debug_info.getU8(offset_ptr);
> +  }
>    if (IndexEntry) {
> ----------------
> This should probably be tested by a llvm-dwarfdump test?
>

Alternatively, by a unit test (which would exercise DwarfGenerator as well)
- or possibly both.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170221/966dbac8/attachment.html>


More information about the llvm-commits mailing list