[lld] r319274 - Delete dead code. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 17:55:03 PST 2017


Author: rafael
Date: Tue Nov 28 17:55:03 2017
New Revision: 319274

URL: http://llvm.org/viewvc/llvm-project?rev=319274&view=rev
Log:
Delete dead code. NFC.

Modified:
    lld/trunk/ELF/LinkerScript.h
    lld/trunk/ELF/OutputSections.h

Modified: lld/trunk/ELF/LinkerScript.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.h?rev=319274&r1=319273&r2=319274&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.h (original)
+++ lld/trunk/ELF/LinkerScript.h Tue Nov 28 17:55:03 2017
@@ -34,7 +34,6 @@ class Symbol;
 class InputSectionBase;
 class InputSection;
 class OutputSection;
-class OutputSectionFactory;
 class InputSectionBase;
 class SectionBase;
 

Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=319274&r1=319273&r2=319274&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Tue Nov 28 17:55:03 2017
@@ -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<OutputSection *> Map;
-};
 
 uint64_t getHeaderSize();
 void sortByOrder(llvm::MutableArrayRef<InputSection *> In,




More information about the llvm-commits mailing list