fix build failures on platforms that use -Wunused-private-variable for builds

llvm-svn: 188983
This commit is contained in:
Shankar Easwaran 2013-08-22 04:24:57 +00:00
parent b8b42658ea
commit 5677e433d6
3 changed files with 13 additions and 4 deletions

View File

@ -38,7 +38,10 @@ public:
createLinkerInput(const lld::LinkingContext &);
/// \brief validates the Input Element
virtual bool validate() { return true; }
virtual bool validate() {
(void)_ctx;
return true;
}
/// \brief Dump the Input Element
virtual bool dump(raw_ostream &) { return true; }

View File

@ -39,7 +39,10 @@ public:
createLinkerInput(const lld::LinkingContext &);
/// \brief validates the Input Element
virtual bool validate() { return true; }
virtual bool validate() {
(void)_ctx;
return true;
}
/// \brief Dump the Input Element
virtual bool dump(raw_ostream &) { return true; }

View File

@ -89,12 +89,15 @@ public:
}
/// \brief Validate the options
virtual bool validate() { return true; }
virtual bool validate() {
(void)_elfLinkingContext;
return true;
}
/// \brief Dump the ELFGroup
virtual bool dump(llvm::raw_ostream &) { return true; }
protected:
private:
ELFLinkingContext &_elfLinkingContext;
};