diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index cce4d49d1fb..7a1b493c194 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -614,6 +614,11 @@ public: /// getOpcodeName - Return a string representation for an opcode. const char *getOpcodeName() const; + /// getWithOperandReplaced - Return a constant expression identical to this + /// one, but with the specified operand set to the specified value. + Constant *getWithOperandReplaced(unsigned OpNo, Constant *Op) const; + + virtual void destroyConstant(); virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);