[lld] r336891 - [ELF] - Eliminate dead code. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 12 01:12:09 PDT 2018
Author: grimar
Date: Thu Jul 12 01:12:08 2018
New Revision: 336891
URL: http://llvm.org/viewvc/llvm-project?rev=336891&view=rev
Log:
[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.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=336891&r1=336890&r2=336891&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Jul 12 01:12:08 2018
@@ -1388,10 +1388,6 @@ static bool isDuplicateArmExidxSec(Input
// consecutive identical entries are rare and the effort to check that they
// are identical is high.
- if (isa<SyntheticSection>(Cur))
- // Exidx sentinel section has implicit EXIDX_CANTUNWIND;
- return PrevEntry.Unwind == 0x1;
-
ArrayRef<const ExidxEntry> Entries(
reinterpret_cast<const ExidxEntry *>(Cur->Data.data()),
Cur->getSize() / sizeof(ExidxEntry));
More information about the llvm-commits
mailing list