[lld] r278115 - [ELF] - Removed dead code. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 03:57:42 PDT 2016


Author: grimar
Date: Tue Aug  9 05:57:42 2016
New Revision: 278115

URL: http://llvm.org/viewvc/llvm-project?rev=278115&view=rev
Log:
[ELF] - Removed dead code. NFC.

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

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=278115&r1=278114&r2=278115&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Tue Aug  9 05:57:42 2016
@@ -1768,13 +1768,6 @@ OutputSectionFactory<ELFT>::create(Input
 }
 
 template <class ELFT>
-OutputSectionBase<ELFT> *OutputSectionFactory<ELFT>::lookup(StringRef Name,
-                                                            uint32_t Type,
-                                                            uintX_t Flags) {
-  return Map.lookup({Name, Type, Flags, 0});
-}
-
-template <class ELFT>
 SectionKey<ELFT::Is64Bits>
 OutputSectionFactory<ELFT>::createKey(InputSectionBase<ELFT> *C,
                                       StringRef OutsecName) {

Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=278115&r1=278114&r2=278115&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Tue Aug  9 05:57:42 2016
@@ -678,8 +678,6 @@ public:
   std::pair<OutputSectionBase<ELFT> *, bool> create(InputSectionBase<ELFT> *C,
                                                     StringRef OutsecName);
 
-  OutputSectionBase<ELFT> *lookup(StringRef Name, uint32_t Type, uintX_t Flags);
-
 private:
   Key createKey(InputSectionBase<ELFT> *C, StringRef OutsecName);
 




More information about the llvm-commits mailing list