[DebugInfo] Remove Dwarf5AccelTableWriter::Header::UnitLength. NFC.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Wed, 2 Sep 2020 09:08:25 +0000 (16:08 +0700)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Wed, 2 Sep 2020 09:11:45 +0000 (16:11 +0700)
The member is not in use; the unit length for the table is emitted as
a difference between two labels. Moreover, the type of the member might
be misleading, because for DWARF64 the field should be 64 bit long.

Differential Revision: https://reviews.llvm.org/D86912

llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp

index dea0227..527ed9e 100644 (file)
@@ -190,7 +190,6 @@ public:
 template <typename DataT>
 class Dwarf5AccelTableWriter : public AccelTableWriter {
   struct Header {
-    uint32_t UnitLength = 0;
     uint16_t Version = 5;
     uint16_t Padding = 0;
     uint32_t CompUnitCount;