diff options
-rw-r--r-- | lld/ELF/OutputSections.h | 10 | ||||
-rw-r--r-- | lld/ELF/Relocations.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 1a74023927c..66a906305f4 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -40,16 +40,6 @@ template <class ELFT> class SharedFile; template <class ELFT> class SharedSymbol; template <class ELFT> class DefinedRegular; -template <class ELFT> -static inline typename ELFT::uint getAddend(const typename ELFT::Rel &Rel) { - return 0; -} - -template <class ELFT> -static inline typename ELFT::uint getAddend(const typename ELFT::Rela &Rel) { - return Rel.r_addend; -} - bool isValidCIdentifier(StringRef S); // This represents a section in an output file. diff --git a/lld/ELF/Relocations.h b/lld/ELF/Relocations.h index 0ff02ef1c7c..bac52764bc5 100644 --- a/lld/ELF/Relocations.h +++ b/lld/ELF/Relocations.h @@ -75,6 +75,16 @@ template <class ELFT> void scanRelocations(InputSection<ELFT> &); template <class ELFT> void scanRelocations(InputSectionBase<ELFT> &, const typename ELFT::Shdr &); + +template <class ELFT> +static inline typename ELFT::uint getAddend(const typename ELFT::Rel &Rel) { + return 0; +} + +template <class ELFT> +static inline typename ELFT::uint getAddend(const typename ELFT::Rela &Rel) { + return Rel.r_addend; +} } } |