[lld] r188983 - fix build failures on platforms that use -Wunused-private-variable for builds
Shankar Easwaran
shankare at codeaurora.org
Wed Aug 21 21:24:57 PDT 2013
Author: shankare
Date: Wed Aug 21 23:24:57 2013
New Revision: 188983
URL: http://llvm.org/viewvc/llvm-project?rev=188983&view=rev
Log:
fix build failures on platforms that use -Wunused-private-variable for builds
Modified:
lld/trunk/include/lld/Driver/CoreInputGraph.h
lld/trunk/include/lld/Driver/DarwinInputGraph.h
lld/trunk/include/lld/Driver/GnuLDInputGraph.h
Modified: lld/trunk/include/lld/Driver/CoreInputGraph.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Driver/CoreInputGraph.h?rev=188983&r1=188982&r2=188983&view=diff
==============================================================================
--- lld/trunk/include/lld/Driver/CoreInputGraph.h (original)
+++ lld/trunk/include/lld/Driver/CoreInputGraph.h Wed Aug 21 23:24:57 2013
@@ -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; }
Modified: lld/trunk/include/lld/Driver/DarwinInputGraph.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Driver/DarwinInputGraph.h?rev=188983&r1=188982&r2=188983&view=diff
==============================================================================
--- lld/trunk/include/lld/Driver/DarwinInputGraph.h (original)
+++ lld/trunk/include/lld/Driver/DarwinInputGraph.h Wed Aug 21 23:24:57 2013
@@ -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; }
Modified: lld/trunk/include/lld/Driver/GnuLDInputGraph.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Driver/GnuLDInputGraph.h?rev=188983&r1=188982&r2=188983&view=diff
==============================================================================
--- lld/trunk/include/lld/Driver/GnuLDInputGraph.h (original)
+++ lld/trunk/include/lld/Driver/GnuLDInputGraph.h Wed Aug 21 23:24:57 2013
@@ -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;
};
More information about the llvm-commits
mailing list