diff options
Diffstat (limited to 'lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h')
| -rw-r--r-- | lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h b/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h index b1d3c09dc936..8cde7a03e51a 100644 --- a/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h +++ b/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h @@ -10,21 +10,24 @@ #ifndef AARCH64_RELOCATION_HANDLER_H #define AARCH64_RELOCATION_HANDLER_H -#include "AArch64TargetHandler.h" +#include "lld/ReaderWriter/ELFLinkingContext.h" namespace lld { namespace elf { -typedef llvm::object::ELFType<llvm::support::little, 2, true> AArch64ELFType; -template <class ELFT> class AArch64TargetLayout; +class AArch64TargetLayout; class AArch64TargetRelocationHandler final : public TargetRelocationHandler { public: + AArch64TargetRelocationHandler(AArch64TargetLayout &layout) + : _layout(layout) {} + std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &, - const lld::AtomLayout &, + const AtomLayout &, const Reference &) const override; - static const Registry::KindStrings kindStrings[]; +private: + AArch64TargetLayout &_layout; }; } // end namespace elf |
