[lld] r304950 - Delete dead code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 7 15:57:52 PDT 2017
Author: rafael
Date: Wed Jun 7 17:57:52 2017
New Revision: 304950
URL: http://llvm.org/viewvc/llvm-project?rev=304950&view=rev
Log:
Delete dead code.
The real offsets are computed in assignAddresses and we compute the
special cases we need earlier after this.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=304950&r1=304949&r2=304950&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Jun 7 17:57:52 2017
@@ -998,9 +998,6 @@ template <class ELFT> void Writer<ELFT>:
sortInitFini(findSection(".fini_array"));
sortCtorsDtors(findSection(".ctors"));
sortCtorsDtors(findSection(".dtors"));
-
- for (OutputSection *Sec : OutputSections)
- Sec->assignOffsets();
}
// We want to find how similar two ranks are.
More information about the llvm-commits
mailing list