diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 30c1fc783e7..55ecd4052e6 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -139,7 +139,7 @@ public: void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: - static inline bool classof(const BasicBlock *BB) { return true; } + static inline bool classof(const BasicBlock *) { return true; } static inline bool classof(const Value *V) { return V->getValueType() == Value::BasicBlockVal; } diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index fc63b35b203..f9d8441a675 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -75,7 +75,7 @@ public: /// use Value::replaceAllUsesWith, which automatically dispatches to this /// method as needed. /// - virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) { + virtual void replaceUsesOfWithOnConstant(Value *, Value *, Use *) { // Provide a default implementation for constants (like integers) that // cannot use any other values. This cannot be called at runtime, but needs // to be here to avoid link errors. diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h index f85bd5edef4..ca92b21c7fb 100644 --- a/include/llvm/GlobalValue.h +++ b/include/llvm/GlobalValue.h @@ -101,7 +101,7 @@ public: void removeDeadConstantUsers(); // Methods for support type inquiry through isa, cast, and dyn_cast: - static inline bool classof(const GlobalValue *T) { return true; } + static inline bool classof(const GlobalValue *) { return true; } static inline bool classof(const Value *V) { return V->getValueType() == Value::FunctionVal || V->getValueType() == Value::GlobalVariableVal; diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index ef6285261d0..d9cb5859211 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -157,7 +157,7 @@ public: void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: - static inline bool classof(const Instruction *I) { return true; } + static inline bool classof(const Instruction *) { return true; } static inline bool classof(const Value *V) { return V->getValueType() >= Value::InstructionVal; }