[llvm] 71eed48 - [DebugInfo] Remove Dwarf5AccelTableWriter::Header::UnitLength. NFC.
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 02:24:01 PDT 2020
Author: Igor Kudrin
Date: 2020-09-02T16:11:45+07:00
New Revision: 71eed4808fbc5e5baa016210f727683610139014
URL: https://github.com/llvm/llvm-project/commit/71eed4808fbc5e5baa016210f727683610139014
DIFF: https://github.com/llvm/llvm-project/commit/71eed4808fbc5e5baa016210f727683610139014.diff
LOG: [DebugInfo] Remove Dwarf5AccelTableWriter::Header::UnitLength. NFC.
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
Added:
Modified:
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
index dea0227f7578..527ed9ea4e97 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
@@ -190,7 +190,6 @@ class AppleAccelTableWriter : public AccelTableWriter {
template <typename DataT>
class Dwarf5AccelTableWriter : public AccelTableWriter {
struct Header {
- uint32_t UnitLength = 0;
uint16_t Version = 5;
uint16_t Padding = 0;
uint32_t CompUnitCount;
More information about the llvm-commits
mailing list