forked from OSchip/llvm-project
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
//===- 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 "MipsLinkingContext.h"
|
|
|
|
namespace lld {
|
|
namespace elf {
|
|
|
|
class MipsTargetHandler;
|
|
|
|
class MipsTargetRelocationHandler final
|
|
: public TargetRelocationHandler<Mips32ElELFType> {
|
|
public:
|
|
MipsTargetRelocationHandler(MipsTargetLayout<Mips32ElELFType> &layout)
|
|
: _mipsTargetLayout(layout) {}
|
|
|
|
error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
|
|
const lld::AtomLayout &,
|
|
const Reference &) const override;
|
|
|
|
private:
|
|
MipsTargetLayout<Mips32ElELFType> &_mipsTargetLayout;
|
|
};
|
|
|
|
} // elf
|
|
} // lld
|
|
|
|
#endif
|