[llvm] 2029d39 - [DWARFLinker] Remove unused declaration keepDIEAndDependencies
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 3 23:37:07 PDT 2023
Author: Kazu Hirata
Date: 2023-06-03T23:36:51-07:00
New Revision: 2029d39261fadd9127fac5bcb570366c08597e6e
URL: https://github.com/llvm/llvm-project/commit/2029d39261fadd9127fac5bcb570366c08597e6e
DIFF: https://github.com/llvm/llvm-project/commit/2029d39261fadd9127fac5bcb570366c08597e6e.diff
LOG: [DWARFLinker] Remove unused declaration keepDIEAndDependencies
The corresponding function definition was removed by:
commit 95a8e8a2557e487be6133475966255661a9f6567
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: Tue Dec 3 11:10:04 2019 -0800
Added:
Modified:
llvm/include/llvm/DWARFLinker/DWARFLinker.h
llvm/lib/DWARFLinker/DWARFLinker.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/DWARFLinker/DWARFLinker.h b/llvm/include/llvm/DWARFLinker/DWARFLinker.h
index 8090bfdef10a6..e5475bb50b707 100644
--- a/llvm/include/llvm/DWARFLinker/DWARFLinker.h
+++ b/llvm/include/llvm/DWARFLinker/DWARFLinker.h
@@ -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,
diff --git a/llvm/lib/DWARFLinker/DWARFLinker.cpp b/llvm/lib/DWARFLinker/DWARFLinker.cpp
index 363cff430a662..e1a2d012023e0 100644
--- a/llvm/lib/DWARFLinker/DWARFLinker.cpp
+++ b/llvm/lib/DWARFLinker/DWARFLinker.cpp
@@ -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);
More information about the llvm-commits
mailing list