[lld] r226257 - [PPC] Remove unused class field PPCTargetRelocationHandler::_ppcTargetLayout
Simon Atanasyan
simon at atanasyan.com
Fri Jan 16 00:57:40 PST 2015
Author: atanasyan
Date: Fri Jan 16 02:57:39 2015
New Revision: 226257
URL: http://llvm.org/viewvc/llvm-project?rev=226257&view=rev
Log:
[PPC] Remove unused class field PPCTargetRelocationHandler::_ppcTargetLayout
No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.cpp
lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
Modified: lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.cpp?rev=226257&r1=226256&r2=226257&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.cpp Fri Jan 16 02:57:39 2015
@@ -61,8 +61,7 @@ std::error_code PPCTargetRelocationHandl
PPCTargetHandler::PPCTargetHandler(PPCLinkingContext &context)
: DefaultTargetHandler(context), _ppcLinkingContext(context),
_ppcTargetLayout(new PPCTargetLayout<PPCELFType>(context)),
- _ppcRelocationHandler(
- new PPCTargetRelocationHandler(context, *_ppcTargetLayout.get())) {}
+ _ppcRelocationHandler(new PPCTargetRelocationHandler(context)) {}
void PPCTargetHandler::registerRelocationNames(Registry ®istry) {
registry.addKindTable(Reference::KindNamespace::ELF,
Modified: lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h?rev=226257&r1=226256&r2=226257&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h Fri Jan 16 02:57:39 2015
@@ -26,17 +26,12 @@ public:
class PPCTargetRelocationHandler final
: public TargetRelocationHandler<PPCELFType> {
public:
- PPCTargetRelocationHandler(ELFLinkingContext &context,
- PPCTargetLayout<PPCELFType> &layout)
- : TargetRelocationHandler<PPCELFType>(context),
- _ppcTargetLayout(layout) {}
+ PPCTargetRelocationHandler(ELFLinkingContext &context)
+ : TargetRelocationHandler<PPCELFType>(context) {}
virtual std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
const lld::AtomLayout &,
const Reference &) const override;
-
-protected:
- PPCTargetLayout<PPCELFType> &_ppcTargetLayout;
};
class PPCTargetHandler final
More information about the llvm-commits
mailing list