diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-11-09 23:23:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-11-09 23:23:45 +0000 |
commit | 94db8ea2d1e0f32e4016715542ebb622d84c85ce (patch) | |
tree | 17524b11001c87ceaecc7c9065e87835600e2ac1 /lld/ELF/Writer.h | |
parent | 21d5ca0050583214f81ff35e2ae43f77312495fd (diff) |
Make OutputSectionBase a class instead of class template.
The disadvantage is that we use uint64_t instad of uint32_t for some
value in 32 bit files. The advantage is a substantially simpler code,
faster builds and less code duplication.
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r-- | lld/ELF/Writer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h index 3b6c6e52de2..4e353acc2b0 100644 --- a/lld/ELF/Writer.h +++ b/lld/ELF/Writer.h @@ -17,24 +17,24 @@ namespace lld { namespace elf { class InputFile; -template <class ELFT> class OutputSectionBase; +class OutputSectionBase; template <class ELFT> class InputSectionBase; template <class ELFT> class ObjectFile; template <class ELFT> class SymbolTable; template <class ELFT> void writeResult(); template <class ELFT> void markLive(); -template <class ELFT> bool isRelroSection(const OutputSectionBase<ELFT> *Sec); +template <class ELFT> bool isRelroSection(const OutputSectionBase *Sec); // This describes a program header entry. // Each contains type, access flags and range of output sections that will be // placed in it. template <class ELFT> struct PhdrEntry { PhdrEntry(unsigned Type, unsigned Flags); - void add(OutputSectionBase<ELFT> *Sec); + void add(OutputSectionBase *Sec); typename ELFT::Phdr H = {}; - OutputSectionBase<ELFT> *First = nullptr; - OutputSectionBase<ELFT> *Last = nullptr; + OutputSectionBase *First = nullptr; + OutputSectionBase *Last = nullptr; bool HasLMA = false; }; |