mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
Simplify.
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
This commit is contained in:
parent
2a5015b11b
commit
cfa171d68c
@ -824,14 +824,10 @@ template <class ELFT> void EhInputSection::split() {
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user