aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Constant.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-29 05:36:05 +0000
committerChris Lattner <sabre@nondot.org>2003-08-29 05:36:05 +0000
commit6ac02a909256c6c0481e57c4a41e53e4007e69b2 (patch)
tree859266d0b248a0bdcca240f9d22e868b0977701b /include/llvm/Constant.h
parent205f9fce19586ffe3d3cb23d8d01ab9ca74b2a97 (diff)
downloadexternal_llvm-6ac02a909256c6c0481e57c4a41e53e4007e69b2.zip
external_llvm-6ac02a909256c6c0481e57c4a41e53e4007e69b2.tar.gz
external_llvm-6ac02a909256c6c0481e57c4a41e53e4007e69b2.tar.bz2
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/Constant.h')
-rw-r--r--include/llvm/Constant.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index a7ec633..e6f63b1 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -67,7 +67,8 @@ public:
/// use Value::replaceAllUsesWith, which automatically dispatches to this
/// method as needed.
///
- virtual void replaceUsesOfWithOnConstant(Value *From, Value *To) {
+ virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
+ bool DisableChecking = false) {
// 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.