Skip to content

Commit ceadfb1

Browse files
author
Amirhossein Pashaeehir
committed
Remove unused EndAddress field
1 parent 5c807f2 commit ceadfb1

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,6 @@ class UnwindTable {
333333
}
334334
void insertRow(const UnwindRow &Row) { Rows.push_back(Row); }
335335

336-
/// Set the last address that this unwinding table refers to.
337-
///
338-
/// This is used when this table is created based on a FDE.
339-
void setEndAddress(uint64_t Addr) { EndAddress = Addr; }
340-
341336
/// Dump the UnwindTable to the stream.
342337
///
343338
/// \param OS the stream to use for output.
@@ -375,9 +370,6 @@ class UnwindTable {
375370

376371
private:
377372
RowContainer Rows;
378-
/// The end address when data is extracted from a FDE. This value will be
379-
/// invalid when a UnwindTable is extracted from a CIE.
380-
std::optional<uint64_t> EndAddress;
381373
};
382374

383375
LLVM_ABI raw_ostream &operator<<(raw_ostream &OS, const UnwindTable &Rows);

llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ Expected<UnwindTable> llvm::dwarf::createUnwindTable(const FDE *Fde) {
217217
UnwindTable UT;
218218
UnwindRow Row;
219219
Row.setAddress(Fde->getInitialLocation());
220-
UT.setEndAddress(Fde->getInitialLocation() + Fde->getAddressRange());
221220
if (Error CieError = UT.parseRows(Cie->cfis(), Row, nullptr))
222221
return std::move(CieError);
223222
// We need to save the initial locations of registers from the CIE parsing

0 commit comments

Comments
 (0)