[lld] r252935 - Early continue. NFC.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 14:52:02 PST 2015


thanks!

On 12 November 2015 at 14:45, Rui Ueyama via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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;
>      }
>    }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list