diff options
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h | 8 | ||||
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h index eedd05a180c..be6497aa505 100644 --- a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h +++ b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.h @@ -21,8 +21,7 @@ template <class ELFT> class AArch64TargetLayout; class AArch64TargetRelocationHandler final : public TargetRelocationHandler<AArch64ELFType> { public: - AArch64TargetRelocationHandler(AArch64TargetLayout<AArch64ELFType> &layout) - : _tlsSize(0), _AArch64Layout(layout) {} + AArch64TargetRelocationHandler() {} std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &, const lld::AtomLayout &, @@ -31,11 +30,6 @@ public: virtual int64_t relocAddend(const Reference &) const; static const Registry::KindStrings kindStrings[]; - -private: - // Cached size of the TLS segment. - mutable uint64_t _tlsSize; - AArch64TargetLayout<AArch64ELFType> &_AArch64Layout; }; } // end namespace elf diff --git a/lld/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp b/lld/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp index c74075028a5..35efa245452 100644 --- a/lld/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/AArch64/AArch64TargetHandler.cpp @@ -20,7 +20,7 @@ AArch64TargetHandler::AArch64TargetHandler(AArch64LinkingContext &context) : DefaultTargetHandler(context), _context(context), _AArch64TargetLayout(new AArch64TargetLayout<AArch64ELFType>(context)), _AArch64RelocationHandler( - new AArch64TargetRelocationHandler(*_AArch64TargetLayout.get())) {} + new AArch64TargetRelocationHandler()) {} void AArch64TargetHandler::registerRelocationNames(Registry ®istry) { registry.addKindTable(Reference::KindNamespace::ELF, |

