diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 10 | ||||
-rw-r--r-- | lld/ELF/OutputSections.h | 13 |
2 files changed, 13 insertions, 10 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index b9d6f403b34..8d2b1668eab 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -487,16 +487,6 @@ static typename ELFT::uint getOutFlags(InputSectionBase<ELFT> *S) { return S->Flags & ~SHF_GROUP & ~SHF_COMPRESSED; } -namespace llvm { -template <> struct DenseMapInfo<lld::elf::SectionKey> { - static lld::elf::SectionKey getEmptyKey(); - static lld::elf::SectionKey getTombstoneKey(); - static unsigned getHashValue(const lld::elf::SectionKey &Val); - static bool isEqual(const lld::elf::SectionKey &LHS, - const lld::elf::SectionKey &RHS); -}; -} - template <class ELFT> static SectionKey createKey(InputSectionBase<ELFT> *C, StringRef OutsecName) { // The ELF spec just says diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 0805df86d7f..f5b8157696b 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -202,6 +202,19 @@ struct SectionKey { uint64_t Flags; uint64_t Alignment; }; +} +} +namespace llvm { +template <> struct DenseMapInfo<lld::elf::SectionKey> { + static lld::elf::SectionKey getEmptyKey(); + static lld::elf::SectionKey getTombstoneKey(); + static unsigned getHashValue(const lld::elf::SectionKey &Val); + static bool isEqual(const lld::elf::SectionKey &LHS, + const lld::elf::SectionKey &RHS); +}; +} +namespace lld { +namespace elf { // This class knows how to create an output section for a given // input section. Output section type is determined by various |