summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Writer.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index b752ec1f685..c1c97d95457 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -992,7 +992,10 @@ public:
std::pair<OutputSectionBase<ELFT> *, bool> create(InputSectionBase<ELFT> *C,
StringRef OutsecName);
- OutputSectionBase<ELFT> *lookup(StringRef Name, uint32_t Type, uintX_t Flags);
+ OutputSectionBase<ELFT> *lookup(StringRef Name, uint32_t Type,
+ uintX_t Flags) {
+ return Map.lookup({Name, Type, Flags});
+ }
private:
SectionKey<ELFT::Is64Bits> createKey(InputSectionBase<ELFT> *C,
@@ -1030,13 +1033,6 @@ OutputSectionFactory<ELFT>::create(InputSectionBase<ELFT> *C,
}
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) {
OpenPOWER on IntegriCloud