[llvm-commits] CVS: llvm/include/llvm/Constant.h Constants.h GlobalVariable.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 4 11:12:25 PDT 2005
Changes in directory llvm/include/llvm:
Constant.h updated: 1.24 -> 1.25
Constants.h updated: 1.74 -> 1.75
GlobalVariable.h updated: 1.34 -> 1.35
---
Log message:
Change the signature of replaceUsesOfWithOnConstant to take a Use* and not
take the bool. The bool is always true dynamically.
---
Diffs of the changes: (+6 -14)
Constant.h | 3 +--
Constants.h | 14 ++++----------
GlobalVariable.h | 3 +--
3 files changed, 6 insertions(+), 14 deletions(-)
Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.24 llvm/include/llvm/Constant.h:1.25
--- llvm/include/llvm/Constant.h:1.24 Tue Sep 27 01:08:32 2005
+++ llvm/include/llvm/Constant.h Tue Oct 4 13:12:13 2005
@@ -75,8 +75,7 @@
/// use Value::replaceAllUsesWith, which automatically dispatches to this
/// method as needed.
///
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false) {
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
// 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: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.74 llvm/include/llvm/Constants.h:1.75
--- llvm/include/llvm/Constants.h:1.74 Tue Sep 27 01:08:32 2005
+++ llvm/include/llvm/Constants.h Tue Oct 4 13:12:13 2005
@@ -323,8 +323,6 @@
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 @@
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 @@
}
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 @@
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 @@
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) {
Index: llvm/include/llvm/GlobalVariable.h
diff -u llvm/include/llvm/GlobalVariable.h:1.34 llvm/include/llvm/GlobalVariable.h:1.35
--- llvm/include/llvm/GlobalVariable.h:1.34 Thu Apr 21 22:20:18 2005
+++ llvm/include/llvm/GlobalVariable.h Tue Oct 4 13:12:13 2005
@@ -113,8 +113,7 @@
/// Override Constant's implementation of this method so we can
/// replace constant initializers.
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
- bool DisableChecking = false);
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
virtual void print(std::ostream &OS) const;
More information about the llvm-commits
mailing list