From d31c478f99adc183ec4db0c89b0bea484336687d Mon Sep 17 00:00:00 2001 From: George Rimar Date: Thu, 12 Jul 2018 08:12:08 +0000 Subject: [PATCH] [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 --- lld/ELF/Writer.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 08d9538..cc9ca28 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1388,10 +1388,6 @@ static bool isDuplicateArmExidxSec(InputSection *Prev, InputSection *Cur) { // consecutive identical entries are rare and the effort to check that they // are identical is high. - if (isa(Cur)) - // Exidx sentinel section has implicit EXIDX_CANTUNWIND; - return PrevEntry.Unwind == 0x1; - ArrayRef Entries( reinterpret_cast(Cur->Data.data()), Cur->getSize() / sizeof(ExidxEntry)); -- 2.7.4