ArrayRef<T>() equals to ArrayRef<T>(nullptr, 0), so it looks like
we don't need to handle size 0 as a special case.
llvm-svn: 316600
if (!this->Pieces.empty())
return;
- if (this->NumRelocations) {
- if (this->AreRelocsRela)
- split<ELFT>(this->relas<ELFT>());
- else
- split<ELFT>(this->rels<ELFT>());
- return;
- }
- split<ELFT>(makeArrayRef<typename ELFT::Rela>(nullptr, nullptr));
+ if (this->AreRelocsRela)
+ split<ELFT>(this->relas<ELFT>());
+ else
+ split<ELFT>(this->rels<ELFT>());
}
template <class ELFT, class RelTy>