[lld] r304914 - Delete dead function.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 09:13:20 PDT 2017


>-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;
>-}
>-

Thanks ! Looks I focused on resolving other new conflicts and missed we do not need this one too..

George.


More information about the llvm-commits mailing list