From 5677e433d627fbcc41898162a97de7e19f787779 Mon Sep 17 00:00:00 2001 From: Shankar Easwaran Date: Thu, 22 Aug 2013 04:24:57 +0000 Subject: [PATCH] fix build failures on platforms that use -Wunused-private-variable for builds llvm-svn: 188983 --- lld/include/lld/Driver/CoreInputGraph.h | 5 ++++- lld/include/lld/Driver/DarwinInputGraph.h | 5 ++++- lld/include/lld/Driver/GnuLDInputGraph.h | 7 +++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lld/include/lld/Driver/CoreInputGraph.h b/lld/include/lld/Driver/CoreInputGraph.h index a89f3b7..5151a2a 100644 --- a/lld/include/lld/Driver/CoreInputGraph.h +++ b/lld/include/lld/Driver/CoreInputGraph.h @@ -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; } diff --git a/lld/include/lld/Driver/DarwinInputGraph.h b/lld/include/lld/Driver/DarwinInputGraph.h index f64a6f9..c6338cb 100644 --- a/lld/include/lld/Driver/DarwinInputGraph.h +++ b/lld/include/lld/Driver/DarwinInputGraph.h @@ -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; } diff --git a/lld/include/lld/Driver/GnuLDInputGraph.h b/lld/include/lld/Driver/GnuLDInputGraph.h index a595182b..6847525 100644 --- a/lld/include/lld/Driver/GnuLDInputGraph.h +++ b/lld/include/lld/Driver/GnuLDInputGraph.h @@ -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; }; -- 2.7.4