Remove some dead argument names which irritates GCC at certain warning levels.
authorChris Lattner <sabre@nondot.org>
Tue, 25 Oct 2005 17:59:28 +0000 (17:59 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 25 Oct 2005 17:59:28 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23979 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/BasicBlock.h
include/llvm/Constant.h
include/llvm/GlobalValue.h
include/llvm/Instruction.h

index 30c1fc783e7a1ac3f846c4e595c4a3046fdd96a0..55ecd4052e6925a4349b3257e634815e406d3f4f 100644 (file)
@@ -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;
   }
index fc63b35b20327d86156e7a2b44cb5841404d26f4..f9d8441a675ba02c60b70a4b6f68e6aaeb0d0ebc 100644 (file)
@@ -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.
index f85bd5edef46879374168894aeeb22dca9c28206..ca92b21c7fb58181d6c6898c3b5c8413f940d392 100644 (file)
@@ -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;
index ef6285261d06028e76afc6b9d5e8953c55def2f6..d9cb5859211513b2b5022046a3a36d8d184a0959 100644 (file)
@@ -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;
   }