diff options
Diffstat (limited to 'lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h')
-rw-r--r-- | lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h b/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h new file mode 100644 index 000000000000..87066b2b5c10 --- /dev/null +++ b/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h @@ -0,0 +1,31 @@ +//===- lld/ReaderWriter/ELF/Mips/MipsRelocationHandler.h ------------------===// +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +#ifndef LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H +#define LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H + +#include "TargetHandler.h" +#include "lld/Core/Reference.h" + +namespace lld { +namespace elf { + +class MipsRelocationHandler : public TargetRelocationHandler { +public: + virtual Reference::Addend readAddend(Reference::KindValue kind, + const uint8_t *content) const = 0; +}; + +template <class ELFT> +std::unique_ptr<TargetRelocationHandler> +createMipsRelocationHandler(MipsLinkingContext &ctx); + +} // elf +} // lld + +#endif |