summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-10-05 15:35:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-10-05 15:35:18 +0000
commit7b8bb53e94007af129d5d81fc782adc3b4f79fb3 (patch)
treebc8c7e2d5da6277c64165340b3b71ffb2229ff94
parentbbfd5287489fe2a55d71097c6e4914ace20d7d7f (diff)
downloadbcm5719-llvm-7b8bb53e94007af129d5d81fc782adc3b4f79fb3.tar.gz
bcm5719-llvm-7b8bb53e94007af129d5d81fc782adc3b4f79fb3.zip
Remove redundant check. NFC.
llvm-svn: 283328
-rw-r--r--lld/ELF/OutputSections.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 0a6c8732f15..bce9d5983e2 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -1241,13 +1241,11 @@ void MergeOutputSection<ELFT>::addSection(InputSectionBase<ELFT> *C) {
this->Header.sh_entsize = Sec->getSectionHdr()->sh_entsize;
Sections.push_back(Sec);
- bool IsString = this->Header.sh_flags & SHF_STRINGS;
-
for (SectionPiece &Piece : Sec->Pieces) {
if (!Piece.Live)
continue;
uintX_t OutputOffset = Builder.add(toStringRef(Piece.data()));
- if (!IsString || !shouldTailMerge())
+ if (!shouldTailMerge())
Piece.OutputOff = OutputOffset;
}
}
OpenPOWER on IntegriCloud