Skip to content

Commit

Permalink
Remove dwarfWalker::deallocateLocationList (#1532)
Browse files Browse the repository at this point in the history
Its usage was removed by 1aec77b in 2017.
  • Loading branch information
hainest committed Sep 21, 2023
1 parent 39fe75f commit ee70be0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions symtabAPI/src/dwarfWalker.C
Original file line number Diff line number Diff line change
Expand Up @@ -2495,16 +2495,6 @@ bool DwarfWalker::decodeLocationListForStaticOffsetOrAddress(
} /* end decodeLocationListForStaticOffsetOrAddress() */


void DwarfWalker::deallocateLocationList( Dwarf_Op ** /*locationList*/,
Dwarf_Sword listLength )
{
for( int i = 0; i < listLength; i++ ) {
//dwarf_dealloc( dbg(), locationList[i]->ld_s, DW_DLA_LOC_BLOCK );
//dwarf_dealloc( dbg(), locationList[i], DW_DLA_LOCDESC );
}
//dwarf_dealloc( dbg(), locationList, DW_DLA_LIST );
} /* end deallocateLocationList() */

void DwarfWalker::setEntry(Dwarf_Die entry) {
DwarfParseActions::setEntry(entry);
DwarfParseActions::setSpecEntry(entry);
Expand Down
2 changes: 0 additions & 2 deletions symtabAPI/src/dwarfWalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ class DwarfWalker : public DwarfParseActions {
Dwarf_Sword listLength,
std::vector<VariableLocation>& locs,
Address * initialStackValue = NULL);
void deallocateLocationList(Dwarf_Op **locationList,
Dwarf_Sword listLength);


// Map of Function* to bool (indicates function parsed)
Expand Down

0 comments on commit ee70be0

Please sign in to comment.