diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-23 17:21:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-23 17:21:39 +0000 |
commit | c96ca1425d4638b8e31090247d34958f52c59047 (patch) | |
tree | e3d61afa8995ad5353fd70d263fcd7404654612e /lld/ELF/Writer.h | |
parent | 7d25bc18b5273f6733b0a8b6af897cfac138505e (diff) |
Detemplate reportDuplicate.
We normally avoid "switch (Config->EKind)", but in this case I think
it is worth it.
It is only executed when there is an error and it allows detemplating
a lot of code.
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r-- | lld/ELF/Writer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h index 32d3c23047d..d247068bab2 100644 --- a/lld/ELF/Writer.h +++ b/lld/ELF/Writer.h @@ -46,7 +46,7 @@ struct PhdrEntry { bool HasLMA = false; }; -template <class ELFT> void addReservedSymbols(); +void addReservedSymbols(); llvm::StringRef getOutputSectionName(InputSectionBase *S); template <class ELFT> uint32_t calcMipsEFlags(); |