mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
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
This commit is contained in:
parent
a55b30a225
commit
40cdedecf5
@ -75,8 +75,7 @@ public:
|
|||||||
/// use Value::replaceAllUsesWith, which automatically dispatches to this
|
/// use Value::replaceAllUsesWith, which automatically dispatches to this
|
||||||
/// method as needed.
|
/// method as needed.
|
||||||
///
|
///
|
||||||
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
|
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
|
||||||
bool DisableChecking = false) {
|
|
||||||
// Provide a default implementation for constants (like integers) that
|
// Provide a default implementation for constants (like integers) that
|
||||||
// cannot use any other values. This cannot be called at runtime, but needs
|
// cannot use any other values. This cannot be called at runtime, but needs
|
||||||
// to be here to avoid link errors.
|
// to be here to avoid link errors.
|
||||||
|
@ -323,8 +323,6 @@ public:
|
|||||||
virtual bool isNullValue() const { return true; }
|
virtual bool isNullValue() const { return true; }
|
||||||
|
|
||||||
virtual void destroyConstant();
|
virtual void destroyConstant();
|
||||||
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
|
|
||||||
bool DisableChecking = false);
|
|
||||||
|
|
||||||
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
///
|
///
|
||||||
@ -372,8 +370,7 @@ public:
|
|||||||
virtual bool isNullValue() const { return false; }
|
virtual bool isNullValue() const { return false; }
|
||||||
|
|
||||||
virtual void destroyConstant();
|
virtual void destroyConstant();
|
||||||
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
|
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
|
||||||
bool DisableChecking = false);
|
|
||||||
|
|
||||||
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
static inline bool classof(const ConstantArray *) { return true; }
|
static inline bool classof(const ConstantArray *) { return true; }
|
||||||
@ -413,8 +410,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual void destroyConstant();
|
virtual void destroyConstant();
|
||||||
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
|
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
|
||||||
bool DisableChecking = false);
|
|
||||||
|
|
||||||
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
static inline bool classof(const ConstantStruct *) { return true; }
|
static inline bool classof(const ConstantStruct *) { return true; }
|
||||||
@ -451,8 +447,7 @@ public:
|
|||||||
virtual bool isNullValue() const { return false; }
|
virtual bool isNullValue() const { return false; }
|
||||||
|
|
||||||
virtual void destroyConstant();
|
virtual void destroyConstant();
|
||||||
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
|
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
|
||||||
bool DisableChecking = false);
|
|
||||||
|
|
||||||
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
static inline bool classof(const ConstantPacked *) { return true; }
|
static inline bool classof(const ConstantPacked *) { return true; }
|
||||||
@ -604,8 +599,7 @@ public:
|
|||||||
const char *getOpcodeName() const;
|
const char *getOpcodeName() const;
|
||||||
|
|
||||||
virtual void destroyConstant();
|
virtual void destroyConstant();
|
||||||
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
|
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
|
||||||
bool DisableChecking = false);
|
|
||||||
|
|
||||||
/// Override methods to provide more type information...
|
/// Override methods to provide more type information...
|
||||||
inline Constant *getOperand(unsigned i) {
|
inline Constant *getOperand(unsigned i) {
|
||||||
|
@ -113,8 +113,7 @@ public:
|
|||||||
|
|
||||||
/// Override Constant's implementation of this method so we can
|
/// Override Constant's implementation of this method so we can
|
||||||
/// replace constant initializers.
|
/// replace constant initializers.
|
||||||
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
|
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
|
||||||
bool DisableChecking = false);
|
|
||||||
|
|
||||||
virtual void print(std::ostream &OS) const;
|
virtual void print(std::ostream &OS) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user