aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-25 17:59:28 +0000
committerChris Lattner <sabre@nondot.org>2005-10-25 17:59:28 +0000
commit70cfe13f19e91a595808ed6c6ff7e87ff0dccd64 (patch)
tree6c8031e120bb2a9def0477d832ab45777353b0af /include
parent304a564c1f84eaaee8dc218a2eb57443c370e12f (diff)
downloadexternal_llvm-70cfe13f19e91a595808ed6c6ff7e87ff0dccd64.zip
external_llvm-70cfe13f19e91a595808ed6c6ff7e87ff0dccd64.tar.gz
external_llvm-70cfe13f19e91a595808ed6c6ff7e87ff0dccd64.tar.bz2
Remove some dead argument names which irritates GCC at certain warning levels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/BasicBlock.h2
-rw-r--r--include/llvm/Constant.h2
-rw-r--r--include/llvm/GlobalValue.h2
-rw-r--r--include/llvm/Instruction.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 30c1fc7..55ecd40 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 fc63b35..f9d8441 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 f85bd5e..ca92b21 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 ef62852..d9cb585 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;
}