[Mips] Remove redundant non-template MipsRelocationHandler class

llvm-svn: 234155
This commit is contained in:
Simon Atanasyan 2015-04-06 13:26:04 +00:00
parent 58a7fd48dc
commit cd9f268b50
2 changed files with 3 additions and 7 deletions

View File

@ -30,10 +30,10 @@ struct MipsRelocationParams {
bool _shuffle; // Relocation's addendum/result needs to be shuffled
};
template <class ELFT> class RelocationHandler : public MipsRelocationHandler {
template <class ELFT> class RelocationHandler : public TargetRelocationHandler {
public:
RelocationHandler(MipsLinkingContext &ctx, MipsTargetLayout<ELFT> &layout)
: _ctx(ctx), _targetLayout(layout) {}
: _ctx(ctx), _targetLayout(layout) {}
std::error_code applyRelocation(ELFWriter &writer,
llvm::FileOutputBuffer &buf,

View File

@ -9,18 +9,14 @@
#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 MipsLinkingContext;
template<typename ELFT> class MipsTargetLayout;
class MipsRelocationHandler : public TargetRelocationHandler {
public:
};
template <class ELFT>
std::unique_ptr<TargetRelocationHandler>
createMipsRelocationHandler(MipsLinkingContext &ctx,