From 2589d468794701ca413048abb7b5806337556ed7 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 23 Oct 2015 05:26:03 +0000 Subject: [PATCH] Support, IR: silence -Wunused-parameter If this is used outside of LLVM with -Werror, this would cause a failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251094 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Metadata.h | 4 ++-- include/llvm/IR/User.h | 2 +- include/llvm/Support/CommandLine.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm/IR/Metadata.h b/include/llvm/IR/Metadata.h index 5c95a98473e..26302109ff0 100644 --- a/include/llvm/IR/Metadata.h +++ b/include/llvm/IR/Metadata.h @@ -914,13 +914,13 @@ private: N->recalculateHash(); } template - static void dispatchRecalculateHash(NodeTy *N, std::false_type) {} + static void dispatchRecalculateHash(NodeTy *, std::false_type) {} template static void dispatchResetHash(NodeTy *N, std::true_type) { N->setHash(0); } template - static void dispatchResetHash(NodeTy *N, std::false_type) {} + static void dispatchResetHash(NodeTy *, std::false_type) {} public: typedef const MDOperand *op_iterator; diff --git a/include/llvm/IR/User.h b/include/llvm/IR/User.h index d9ea04ac701..78a3b43c86d 100644 --- a/include/llvm/IR/User.h +++ b/include/llvm/IR/User.h @@ -65,7 +65,7 @@ protected: /// This is used for subclasses which have a fixed number of operands. void *operator new(size_t Size, unsigned Us, unsigned DescBytes); - User(Type *ty, unsigned vty, Use *OpList, unsigned NumOps) + User(Type *ty, unsigned vty, Use *, unsigned NumOps) : Value(ty, vty) { assert(NumOps < (1u << NumUserOperandsBits) && "Too many operands"); NumUserOperands = NumOps; diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 467dc128aea..30a3d9a4713 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -714,7 +714,7 @@ public: // class basic_parser_impl { // non-template implementation of basic_parser public: - basic_parser_impl(Option &O) {} + basic_parser_impl(Option &) {} enum ValueExpected getValueExpectedFlagDefault() const { -- 2.34.1