diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-29 05:36:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-29 05:36:05 +0000 |
commit | 6ac02a909256c6c0481e57c4a41e53e4007e69b2 (patch) | |
tree | 859266d0b248a0bdcca240f9d22e868b0977701b /include/llvm/Constants.h | |
parent | 205f9fce19586ffe3d3cb23d8d01ab9ca74b2a97 (diff) | |
download | external_llvm-6ac02a909256c6c0481e57c4a41e53e4007e69b2.tar.gz external_llvm-6ac02a909256c6c0481e57c4a41e53e4007e69b2.tar.bz2 external_llvm-6ac02a909256c6c0481e57c4a41e53e4007e69b2.zip |
Allow for "unsafe" replaceAllUsesWith operatations, for use during type resolution
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 04e4397531..f36e28bd44 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -315,7 +315,8 @@ public: } virtual void destroyConstant(); - virtual void replaceUsesOfWithOnConstant(Value *From, Value *To); + virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, + bool DisableChecking = false); /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const ConstantArray *) { return true; } @@ -362,7 +363,8 @@ public: } virtual void destroyConstant(); - virtual void replaceUsesOfWithOnConstant(Value *From, Value *To); + virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, + bool DisableChecking = false); /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const ConstantStruct *) { return true; } @@ -456,7 +458,8 @@ public: } virtual void destroyConstant(); - virtual void replaceUsesOfWithOnConstant(Value *From, Value *To); + virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, + bool DisableChecking = false); /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const ConstantPointerRef *) { return true; } @@ -526,7 +529,8 @@ public: virtual bool isConstantExpr() const { return true; } virtual void destroyConstant(); - virtual void replaceUsesOfWithOnConstant(Value *From, Value *To); + virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, + bool DisableChecking = false); /// Override methods to provide more type information... inline Constant *getOperand(unsigned i) { |