aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-04 18:12:13 +0000
committerChris Lattner <sabre@nondot.org>2005-10-04 18:12:13 +0000
commit40cdedecf5d871a83363cb7d69a6f6eed525651c (patch)
tree600dc009ed679d8d6f88002217ccb9c7174a9341 /include/llvm/Constants.h
parenta55b30a225a023b6e6315b0c82a4622b457758ab (diff)
Change the signature of replaceUsesOfWithOnConstant to take a Use* and not
take the bool. The bool is always true dynamically. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 0b3784f0d6..4a749abe47 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -323,8 +323,6 @@ public:
virtual bool isNullValue() const { return true; }
virtual void destroyConstant();
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false);
/// Methods for support type inquiry through isa, cast, and dyn_cast:
///
@@ -372,8 +370,7 @@ public:
virtual bool isNullValue() const { return false; }
virtual void destroyConstant();
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false);
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantArray *) { return true; }
@@ -413,8 +410,7 @@ public:
}
virtual void destroyConstant();
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false);
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantStruct *) { return true; }
@@ -451,8 +447,7 @@ public:
virtual bool isNullValue() const { return false; }
virtual void destroyConstant();
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false);
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantPacked *) { return true; }
@@ -604,8 +599,7 @@ public:
const char *getOpcodeName() const;
virtual void destroyConstant();
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false);
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
/// Override methods to provide more type information...
inline Constant *getOperand(unsigned i) {