llvm-project/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h
Rui Ueyama a5b6859ac4 ELF: Use less templates for ELF types.
These classes are templated but actually instantiated for only
one ELF type.

llvm-svn: 234830
2015-04-14 00:59:04 +00:00

36 lines
1.0 KiB
C++

//===--------- lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.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_ARM_ARM_RELOCATION_HANDLER_H
#define LLD_READER_WRITER_ELF_ARM_ARM_RELOCATION_HANDLER_H
#include "lld/ReaderWriter/ELFLinkingContext.h"
namespace lld {
namespace elf {
class ARMTargetLayout;
class ARMTargetRelocationHandler final : public TargetRelocationHandler {
public:
ARMTargetRelocationHandler(ARMTargetLayout &layout) : _armLayout(layout) {}
std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
const lld::AtomLayout &,
const Reference &) const override;
private:
ARMTargetLayout &_armLayout;
};
} // end namespace elf
} // end namespace lld
#endif // LLD_READER_WRITER_ELF_ARM_ARM_RELOCATION_HANDLER_H