Add another helper method.
authorChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 22:19:18 +0000 (22:19 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 22:19:18 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29147 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index 7a1b493c194813f33bfd53f36698c754197e5578..ef06c33ced98ebb665d1ca1d3a00839659eb086f 100644 (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);