[lld] fix unused variable warnings

llvm-svn: 197737
This commit is contained in:
Nick Kledzik 2013-12-19 22:50:08 +00:00
parent 1654511884
commit fc3a975d85
5 changed files with 4 additions and 12 deletions

View File

@ -26,14 +26,13 @@ public:
HexagonTargetRelocationHandler(
const HexagonLinkingContext &context, const HexagonTargetHandler &tH,
const HexagonTargetLayout<HexagonELFType> &layout)
: _context(context), _targetHandler(tH), _targetLayout(layout) {}
: _targetHandler(tH), _targetLayout(layout) {}
virtual error_code
applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
const lld::AtomLayout &, const Reference &) const;
private:
const HexagonLinkingContext &_context;
const HexagonTargetHandler &_targetHandler;
const HexagonTargetLayout<HexagonELFType> &_targetLayout;
};

View File

@ -93,7 +93,7 @@ void relocCall16(uint8_t *location, uint64_t P, uint64_t S, int64_t A,
MipsTargetRelocationHandler::MipsTargetRelocationHandler(
const MipsLinkingContext &context, const MipsTargetHandler &handler)
: _context(context), _targetHandler(handler) {}
: _targetHandler(handler) {}
void
MipsTargetRelocationHandler::savePairedRelocation(const lld::AtomLayout &atom,

View File

@ -27,7 +27,6 @@ public:
const Reference &) const;
private:
const MipsLinkingContext &_context;
const MipsTargetHandler &_targetHandler;
typedef std::vector<const Reference *> PairedRelocationsT;

View File

@ -21,15 +21,12 @@ class PPCLinkingContext;
class PPCTargetRelocationHandler LLVM_FINAL
: public TargetRelocationHandler<PPCELFType> {
public:
PPCTargetRelocationHandler(const PPCLinkingContext &context)
: _context(context) {}
PPCTargetRelocationHandler(const PPCLinkingContext &context) {}
virtual error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
const lld::AtomLayout &,
const Reference &) const;
private:
const PPCLinkingContext &_context;
};
class PPCTargetHandler LLVM_FINAL

View File

@ -24,8 +24,7 @@ class X86LinkingContext;
class X86TargetRelocationHandler LLVM_FINAL
: public TargetRelocationHandler<X86ELFType> {
public:
X86TargetRelocationHandler(const X86LinkingContext &context)
: _context(context) {}
X86TargetRelocationHandler(const X86LinkingContext &context) {}
virtual error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
const lld::AtomLayout &,
@ -33,8 +32,6 @@ public:
static const Registry::KindStrings kindStrings[];
private:
const X86LinkingContext &_context;
};
class X86TargetHandler LLVM_FINAL