[lld] r304820 - Convert a use of OutputSections. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 12:29:37 PDT 2017


Author: rafael
Date: Tue Jun  6 14:29:36 2017
New Revision: 304820

URL: http://llvm.org/viewvc/llvm-project?rev=304820&view=rev
Log:
Convert a use of OutputSections. NFC.

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=304820&r1=304819&r2=304820&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Tue Jun  6 14:29:36 2017
@@ -1270,8 +1270,8 @@ template <class ELFT> void Writer<ELFT>:
   // Fill other section headers. The dynamic table is finalized
   // at the end because some tags like RELSZ depend on result
   // of finalizing other sections.
-  for (OutputSection *Sec : OutputSections)
-    Sec->finalize<ELFT>();
+  for (OutputSectionCommand *Cmd : OutputSectionCommands)
+    Cmd->Sec->finalize<ELFT>();
 
   // createThunks may have added local symbols to the static symbol table
   applySynthetic({InX::SymTab, InX::ShStrTab, InX::StrTab},




More information about the llvm-commits mailing list