diff options
| author | James Henderson <jh7370@my.bristol.ac.uk> | 2017-10-31 17:28:44 +0000 |
|---|---|---|
| committer | James Henderson <jh7370@my.bristol.ac.uk> | 2017-10-31 17:28:44 +0000 |
| commit | 50baa593f1b5bcc014e855b81f0936190b12a9b4 (patch) | |
| tree | f3a7922b967be6045e234f58f9d4b83f55a14244 /lld/ELF/Writer.cpp | |
| parent | f78d097340753a98768955c6ce6dcf18e5994793 (diff) | |
| download | bcm5719-llvm-50baa593f1b5bcc014e855b81f0936190b12a9b4.tar.gz bcm5719-llvm-50baa593f1b5bcc014e855b81f0936190b12a9b4.zip | |
[ELF] Remove unnecessary function call. NFC.
StringTableSection does not implement postThunkContents, so calling it on these
sections is pointless (it calls an empty virtual function), and we can remove it.
Reviewers: ruiu
Differential Revision: https://reviews.llvm.org/D39460
llvm-svn: 317014
Diffstat (limited to 'lld/ELF/Writer.cpp')
| -rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 49dc9ac77ba..944c683eddc 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1363,7 +1363,7 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() { Sec->finalize<ELFT>(); // createThunks may have added local symbols to the static symbol table - applySynthetic({InX::SymTab, InX::ShStrTab, InX::StrTab}, + applySynthetic({InX::SymTab}, [](SyntheticSection *SS) { SS->postThunkContents(); }); } |

