diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2014-03-09 13:04:45 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2014-03-09 13:04:45 +0000 |
| commit | f08deab3957619461beaaf2814fbc26608319b2e (patch) | |
| tree | c31bef84862963fe18ba4f71397270e0ddcc7e5d /lld/lib/ReaderWriter | |
| parent | 53d413f794b444822bc5220606772faea887b7e9 (diff) | |
| download | bcm5719-llvm-f08deab3957619461beaaf2814fbc26608319b2e.tar.gz bcm5719-llvm-f08deab3957619461beaaf2814fbc26608319b2e.zip | |
[Mips] Remove unused class field.
llvm-svn: 203398
Diffstat (limited to 'lld/lib/ReaderWriter')
| -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()) { |

