aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-20 22:27:40 +0000
committerChris Lattner <sabre@nondot.org>2008-08-20 22:27:40 +0000
commitb054bfd3ea50d599fe14bce1b74e39b686724dd9 (patch)
treef7bd82e4d4bd1b664631e76d0f9d995716d96719 /include
parent83babdea5d4ed19c7ed0be225e8be98463914ffb (diff)
Add a new ConstantExpr::getWithOperands that takes any array of operands
instead of requiring an std::vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Constants.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 22acbfcd45..efae25525d 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -752,7 +752,10 @@ public:
/// 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;
+ Constant *getWithOperands(const std::vector<Constant*> &Ops) const {
+ return getWithOperands(&Ops[0], Ops.size());
+ }
+ Constant *getWithOperands(Constant* const *Ops, unsigned NumOps) const;
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);