[lld] r304914 - Delete dead function.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 7 07:24:33 PDT 2017
Author: rafael
Date: Wed Jun 7 09:24:32 2017
New Revision: 304914
URL: http://llvm.org/viewvc/llvm-project?rev=304914&view=rev
Log:
Delete dead function.
Modified:
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=304914&r1=304913&r2=304914&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Wed Jun 7 09:24:32 2017
@@ -1699,17 +1699,6 @@ readCuList(DWARFContext &Dwarf, InputSec
return Ret;
}
-static InputSection *findSection(ArrayRef<InputSectionBase *> Arr,
- uint64_t Offset) {
- for (InputSectionBase *S : Arr)
- if (auto *IS = dyn_cast_or_null<InputSection>(S))
- if (IS != &InputSection::Discarded && IS->Live &&
- Offset >= IS->getOffsetInFile() &&
- Offset < IS->getOffsetInFile() + IS->getSize())
- return IS;
- return nullptr;
-}
-
static std::vector<AddressEntry>
readAddressArea(DWARFContext &Dwarf, InputSection *Sec, size_t CurrentCU) {
std::vector<AddressEntry> Ret;
More information about the llvm-commits
mailing list