Add another helper method.

llvm-svn: 29147
This commit is contained in:
Chris Lattner 2006-07-14 22:19:18 +00:00
parent 9536ec7f39
commit d9a2c2a5e7
1 changed files with 4 additions and 0 deletions

View File

@ -618,6 +618,10 @@ public:
/// one, but with the specified operand set to the specified value.
Constant *getWithOperandReplaced(unsigned OpNo, Constant *Op) const;
/// getWithOperands - This returns the current constant expression with the
/// operands replaced with the specified values. The specified operands must
/// match count and type with the existing ones.
Constant *getWithOperands(const std::vector<Constant*> &Ops) const;
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);