summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-06-06 19:40:01 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-06-06 19:40:01 +0000
commit8c284acf14f23287ee40c897ded1f6e34501719c (patch)
tree42bde8eb7585595d91854ecff4b93ac94c139c91 /lld/ELF/Writer.cpp
parent13f412f6a2fe86878ad85f3e7e4d85a26cf2bd58 (diff)
downloadbcm5719-llvm-8c284acf14f23287ee40c897ded1f6e34501719c.tar.gz
bcm5719-llvm-8c284acf14f23287ee40c897ded1f6e34501719c.zip
Move finalize to OutputSectionCommands. NFC.
This removes a mapping from OutputSection to OutputSectionCommand and is another step in moving clearOutputSections earlier. llvm-svn: 304821
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index b65bfe7bb87..2e31bfd7e81 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1271,7 +1271,7 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
// at the end because some tags like RELSZ depend on result
// of finalizing other sections.
for (OutputSectionCommand *Cmd : OutputSectionCommands)
- Cmd->Sec->finalize<ELFT>();
+ Cmd->finalize<ELFT>();
// createThunks may have added local symbols to the static symbol table
applySynthetic({InX::SymTab, InX::ShStrTab, InX::StrTab},
OpenPOWER on IntegriCloud