summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputSection.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/InputSection.h')
-rw-r--r--lld/ELF/InputSection.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 20fb0de5aa8..d72f9f23dd4 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -76,9 +76,16 @@ public:
InputSectionBase<ELFT> *getRelocTarget(const Elf_Rela &Rel);
template <bool isRela>
- void relocate(uint8_t *Buf, uint8_t *BufEnd,
- llvm::iterator_range<
- const llvm::object::Elf_Rel_Impl<ELFT, isRela> *> Rels);
+ using RelIteratorRange =
+ llvm::iterator_range<const llvm::object::Elf_Rel_Impl<ELFT, isRela> *>;
+
+ template <bool isRela>
+ void relocate(uint8_t *Buf, uint8_t *BufEnd, RelIteratorRange<isRela> Rels);
+
+private:
+ template <bool isRela>
+ uint8_t *findMipsPairedReloc(uint8_t *Buf, uint32_t Type,
+ RelIteratorRange<isRela> Rels);
};
template <class ELFT>
OpenPOWER on IntegriCloud