[lld] r234155 - [Mips] Remove redundant non-template MipsRelocationHandler class
Simon Atanasyan
simon at atanasyan.com
Mon Apr 6 06:26:04 PDT 2015
Author: atanasyan
Date: Mon Apr 6 08:26:04 2015
New Revision: 234155
URL: http://llvm.org/viewvc/llvm-project?rev=234155&view=rev
Log:
[Mips] Remove redundant non-template MipsRelocationHandler class
Modified:
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp?rev=234155&r1=234154&r2=234155&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp Mon Apr 6 08:26:04 2015
@@ -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,
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h?rev=234155&r1=234154&r2=234155&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h Mon Apr 6 08:26:04 2015
@@ -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,
More information about the llvm-commits
mailing list