diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-07 14:24:32 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-07 14:24:32 +0000 |
| commit | 66d98495b03657ffa624ccf340284e7a5e88f13b (patch) | |
| tree | bc38779cc12ca814a14c55c7df5a981accecce44 | |
| parent | ae8d22cee24f5c1dad863c8c355018fdca1f9d26 (diff) | |
| download | bcm5719-llvm-66d98495b03657ffa624ccf340284e7a5e88f13b.tar.gz bcm5719-llvm-66d98495b03657ffa624ccf340284e7a5e88f13b.zip | |
Delete dead function.
llvm-svn: 304914
| -rw-r--r-- | lld/ELF/SyntheticSections.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 5d88959be68..e76736528b0 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1699,17 +1699,6 @@ readCuList(DWARFContext &Dwarf, InputSection *Sec) { 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; |

