summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-04-06 13:26:04 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-04-06 13:26:04 +0000
commitcd9f268b507ef6754da8f2372199bdd3e151ad62 (patch)
treead2cc5b7f0c3ddd5c9d1019ae234143b4ef0620f
parent58a7fd48dcd3fca209ab78b91b15e39754a16c1a (diff)
downloadbcm5719-llvm-cd9f268b507ef6754da8f2372199bdd3e151ad62.tar.gz
bcm5719-llvm-cd9f268b507ef6754da8f2372199bdd3e151ad62.zip
[Mips] Remove redundant non-template MipsRelocationHandler class
llvm-svn: 234155
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp4
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h6
2 files changed, 3 insertions, 7 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
index c7d261b557a..0480e9c56a9 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
@@ -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,
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h
index 32f522cce50..d136be837f9 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h
@@ -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,
OpenPOWER on IntegriCloud