diff options
Diffstat (limited to 'lld/ELF/OutputSections.h')
| -rw-r--r-- | lld/ELF/OutputSections.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 078dd233934..e421123f181 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -131,24 +131,9 @@ struct Out { static OutputSection *FiniArray; }; -struct SectionKey { - StringRef Name; - uint64_t Flags; - uint32_t Alignment; -}; } // namespace elf } // namespace lld -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 llvm - namespace lld { namespace elf { // This class knows how to create an output section for a given @@ -163,7 +148,7 @@ public: OutputSection *addInputSec(InputSectionBase *IS, StringRef OutsecName); private: - llvm::SmallDenseMap<SectionKey, OutputSection *> Map; + llvm::StringMap<OutputSection *> Map; }; uint64_t getHeaderSize(); |

