From 6b8408e9103328b82affbfdf3d3bca236c61f514 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 14 Jul 2006 22:19:18 +0000 Subject: [PATCH] Add another helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29147 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Constants.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 7a1b493c194..ef06c33ced9 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -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 &Ops) const; virtual void destroyConstant(); virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);