[lld] r281320 - Delete dead code.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 13 04:28:22 PDT 2016


Author: rafael
Date: Tue Sep 13 06:28:22 2016
New Revision: 281320

URL: http://llvm.org/viewvc/llvm-project?rev=281320&view=rev
Log:
Delete dead code.

We already handle this is createSections.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=281320&r1=281319&r2=281320&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Sep 13 06:28:22 2016
@@ -411,9 +411,6 @@ template <class ELFT> void LinkerScript<
       if (Cmd->AddrExpr)
         Dot = Cmd->AddrExpr(Dot);
 
-      if (Cmd->AlignExpr)
-        Sec->updateAlignment(Cmd->AlignExpr(Dot));
-
       if ((Sec->getFlags() & SHF_TLS) && Sec->getType() == SHT_NOBITS) {
         uintX_t TVA = Dot + ThreadBssOffset;
         TVA = alignTo(TVA, Sec->getAlignment());




More information about the llvm-commits mailing list