diff options
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h | 6 | ||||
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.cpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h index fe818d1ef21..e9425c422c8 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h @@ -19,9 +19,8 @@ class MipsTargetHandler; class MipsTargetRelocationHandler final : public TargetRelocationHandler<Mips32ElELFType> { public: - MipsTargetRelocationHandler(MipsLinkingContext &context, - MipsTargetLayout<Mips32ElELFType> &layout) - : _mipsLinkingContext(context), _mipsTargetLayout(layout) {} + MipsTargetRelocationHandler(MipsTargetLayout<Mips32ElELFType> &layout) + : _mipsTargetLayout(layout) {} ~MipsTargetRelocationHandler(); @@ -42,7 +41,6 @@ private: const lld::AtomLayout &atom, int64_t gpAddr, int64_t loAddend) const; - MipsLinkingContext &_mipsLinkingContext LLVM_ATTRIBUTE_UNUSED; MipsTargetLayout<Mips32ElELFType> &_mipsTargetLayout; }; diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.cpp index 84ee9636a0c..afe0aa91361 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.cpp @@ -23,7 +23,7 @@ MipsTargetHandler::MipsTargetHandler(MipsLinkingContext &context) _mipsRuntimeFile(new MipsRuntimeFile<Mips32ElELFType>(context)), _mipsTargetLayout(new MipsTargetLayout<Mips32ElELFType>(context)), _mipsRelocationHandler( - new MipsTargetRelocationHandler(context, *_mipsTargetLayout.get())) {} + new MipsTargetRelocationHandler(*_mipsTargetLayout.get())) {} std::unique_ptr<Writer> MipsTargetHandler::getWriter() { switch (_mipsLinkingContext.getOutputELFType()) { |

