Support, IR: silence -Wunused-parameter
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 23 Oct 2015 05:26:03 +0000 (05:26 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 23 Oct 2015 05:26:03 +0000 (05:26 +0000)
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
include/llvm/IR/User.h
include/llvm/Support/CommandLine.h

index 5c95a98473e5e5c83dfc36f8eb42eb13de41dfd1..26302109ff051b43217e8e67677874b719ad9c44 100644 (file)
@@ -914,13 +914,13 @@ private:
     N->recalculateHash();
   }
   template <class NodeTy>
-  static void dispatchRecalculateHash(NodeTy *N, std::false_type) {}
+  static void dispatchRecalculateHash(NodeTy *, std::false_type) {}
   template <class NodeTy>
   static void dispatchResetHash(NodeTy *N, std::true_type) {
     N->setHash(0);
   }
   template <class NodeTy>
-  static void dispatchResetHash(NodeTy *N, std::false_type) {}
+  static void dispatchResetHash(NodeTy *, std::false_type) {}
 
 public:
   typedef const MDOperand *op_iterator;
index d9ea04ac701e24a2d9528f0ffadb842e0a527b2e..78a3b43c86d25de29ca4bed28e0d84499c4abad7 100644 (file)
@@ -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;
index 467dc128aea75db34b69fbd5964d0a2d6ba38863..30a3d9a47134e2133c3dc46b18d4b45240410c53 100644 (file)
@@ -714,7 +714,7 @@ public:
 //
 class basic_parser_impl { // non-template implementation of basic_parser<t>
 public:
-  basic_parser_impl(Option &O) {}
+  basic_parser_impl(Option &) {}
 
 
   enum ValueExpected getValueExpectedFlagDefault() const {