Allow for "unsafe" replaceAllUsesWith operatations, for use during type resolution
[oota-llvm.git] / include / llvm / Constant.h
index a7ec6331bd5c658fc7a910f94b0cba01571c1d26..e6f63b12921b9d6438f91bad7032711ae7dad1e6 100644 (file)
@@ -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.