Skip to content

Commit

Permalink
[DWARFLinker] Remove unused declaration keepDIEAndDependencies
Browse files Browse the repository at this point in the history
The corresponding function definition was removed by:

  commit 95a8e8a
  Author: Jonas Devlieghere <jonas@devlieghere.com>
  Date:   Tue Dec 3 11:10:04 2019 -0800
  • Loading branch information
kazutakahirata committed Jun 4, 2023
1 parent 59048a3 commit 2029d39
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions llvm/include/llvm/DWARFLinker/DWARFLinker.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,13 +563,6 @@ class DWARFLinker {
OffsetsStringPool &DebugLineStrPool,
unsigned Indent = 0);

/// Mark the passed DIE as well as all the ones it depends on as kept.
void keepDIEAndDependencies(AddressesMap &RelocMgr, RangesTy &Ranges,
const UnitListTy &Units, const DWARFDie &DIE,
CompileUnit::DIEInfo &MyInfo,
const DWARFFile &File, CompileUnit &CU,
bool UseODR);

unsigned shouldKeepDIE(AddressesMap &RelocMgr, RangesTy &Ranges,
const DWARFDie &DIE, const DWARFFile &File,
CompileUnit &Unit, CompileUnit::DIEInfo &MyInfo,
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/DWARFLinker/DWARFLinker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,6 @@ void DWARFLinker::lookForDIEsToKeep(AddressesMap &AddressesMap,
if ((Current.Flags & TF_DependencyWalk) && AlreadyKept)
continue;

// We must not call shouldKeepDIE while called from keepDIEAndDependencies,
// because it would screw up the relocation finding logic.
if (!(Current.Flags & TF_DependencyWalk))
Current.Flags = shouldKeepDIE(AddressesMap, Ranges, Current.Die, File,
Current.CU, MyInfo, Current.Flags);
Expand Down

0 comments on commit 2029d39

Please sign in to comment.