diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index 954ac089d6f3..11131dda8e26 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -34,7 +34,6 @@ class Symbol; class InputSectionBase; class InputSection; class OutputSection; -class OutputSectionFactory; class InputSectionBase; class SectionBase; diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index c95cbbe23ced..e717bbc04501 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -136,20 +136,6 @@ struct Out { 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 -// factors, including input section's sh_flags, sh_type and -// linker scripts. -class OutputSectionFactory { -public: - OutputSectionFactory(); - ~OutputSectionFactory(); - - OutputSection *addInputSec(InputSectionBase *IS, StringRef OutsecName); - -private: - llvm::StringMap Map; -}; uint64_t getHeaderSize(); void sortByOrder(llvm::MutableArrayRef In,