Skip to content

Commit d31c478

Browse files
author
George Rimar
committed
[ELF] - Eliminate dead code. NFC.
Code is dead because caller of the isDuplicateArmExidxSex (https://github.com/llvm-mirror/lld/blob/master/ELF/Writer.cpp#L1446) explicitly does not pass sentinel. So no reason to check it. llvm-svn: 336891
1 parent b34565e commit d31c478

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lld/ELF/Writer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,10 +1388,6 @@ static bool isDuplicateArmExidxSec(InputSection *Prev, InputSection *Cur) {
13881388
// consecutive identical entries are rare and the effort to check that they
13891389
// are identical is high.
13901390

1391-
if (isa<SyntheticSection>(Cur))
1392-
// Exidx sentinel section has implicit EXIDX_CANTUNWIND;
1393-
return PrevEntry.Unwind == 0x1;
1394-
13951391
ArrayRef<const ExidxEntry> Entries(
13961392
reinterpret_cast<const ExidxEntry *>(Cur->Data.data()),
13971393
Cur->getSize() / sizeof(ExidxEntry));

0 commit comments

Comments
 (0)