[lld] r252935 - Early continue. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 11:45:58 PST 2015
Author: ruiu
Date: Thu Nov 12 13:45:58 2015
New Revision: 252935
URL: http://llvm.org/viewvc/llvm-project?rev=252935&view=rev
Log:
Early continue. NFC.
Modified:
lld/trunk/ELF/MarkLive.cpp
Modified: lld/trunk/ELF/MarkLive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/MarkLive.cpp?rev=252935&r1=252934&r2=252935&view=diff
==============================================================================
--- lld/trunk/ELF/MarkLive.cpp (original)
+++ lld/trunk/ELF/MarkLive.cpp Thu Nov 12 13:45:58 2015
@@ -112,14 +112,14 @@ template <class ELFT> void lld::elf2::ma
// Preserve special sections.
for (const std::unique_ptr<ObjectFile<ELFT>> &F : Symtab->getObjectFiles()) {
for (InputSectionBase<ELFT> *Sec : F->getSections()) {
- if (Sec && Sec != &InputSection<ELFT>::Discarded) {
- if (isReserved(Sec))
- Enqueue(Sec);
- else if (Sec->getSectionName() == ".eh_frame")
- // .eh_frame is special. It should be marked live so that we don't
- // drop it, but it should not keep any section alive.
- Sec->Live = true;
- }
+ if (!Sec || Sec == &InputSection<ELFT>::Discarded)
+ continue;
+ if (isReserved(Sec))
+ Enqueue(Sec);
+ else if (Sec->getSectionName() == ".eh_frame")
+ // .eh_frame is special. It should be marked live so that we don't
+ // drop it, but it should not keep any section alive.
+ Sec->Live = true;
}
}
More information about the llvm-commits
mailing list