[lld] r256379 - Remove `continue` to make the code a bit shorter. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 24 02:14:06 PST 2015
Author: ruiu
Date: Thu Dec 24 04:14:05 2015
New Revision: 256379
URL: http://llvm.org/viewvc/llvm-project?rev=256379&view=rev
Log:
Remove `continue` to make the code a bit shorter. 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=256379&r1=256378&r2=256379&view=diff
==============================================================================
--- lld/trunk/ELF/MarkLive.cpp (original)
+++ lld/trunk/ELF/MarkLive.cpp Thu Dec 24 04:14:05 2015
@@ -114,14 +114,11 @@ 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)
- continue;
- if (isReserved(Sec))
- Enqueue(Sec);
- }
- }
+ 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);
// Mark all reachable sections.
while (!Q.empty())
More information about the llvm-commits
mailing list