mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-16 12:29:57 +00:00
Simplify. NFC.
llvm-svn: 313667
This commit is contained in:
parent
3d0a540857
commit
faa38029e2
@ -503,14 +503,12 @@ void EhFrameSection<ELFT>::addSection(InputSectionBase *C) {
|
||||
if (Sec->Pieces.empty())
|
||||
return;
|
||||
|
||||
if (Sec->NumRelocations) {
|
||||
if (Sec->AreRelocsRela)
|
||||
addSectionAux(Sec, Sec->template relas<ELFT>());
|
||||
else
|
||||
addSectionAux(Sec, Sec->template rels<ELFT>());
|
||||
return;
|
||||
}
|
||||
addSectionAux(Sec, makeArrayRef<Elf_Rela>(nullptr, nullptr));
|
||||
if (Sec->NumRelocations == 0)
|
||||
addSectionAux(Sec, makeArrayRef<Elf_Rela>(nullptr, nullptr));
|
||||
else if (Sec->AreRelocsRela)
|
||||
addSectionAux(Sec, Sec->template relas<ELFT>());
|
||||
else
|
||||
addSectionAux(Sec, Sec->template rels<ELFT>());
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
|
Loading…
Reference in New Issue
Block a user