Remove some dead argument names which irritates GCC at certain warning levels.
llvm-svn: 23979
This commit is contained in:
parent
d22a788d69
commit
64b830bc0c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue