summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-13 13:46:01 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-13 13:46:01 +0000
commitb81e457eb02b67a9ef5fb9edc1604b177acb821d (patch)
tree3e088b09aec3aa973c422f5d397abe34abb51045 /include/llvm/Constants.h
parentd61895a4beca5b54d01c1899c005a22261b3bcff (diff)
downloadllvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.tar.gz
llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.tar.bz2
llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.tar.xz
PR9214: Convert ConstantExpr::getWithOperands() to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index c12b33fae7..62a2d9f06f 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -897,10 +897,7 @@ 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 {
- return getWithOperands(&Ops[0], (unsigned)Ops.size());
- }
- Constant *getWithOperands(Constant *const *Ops, unsigned NumOps) const;
+ Constant *getWithOperands(llvm::ArrayRef<Constant*> Ops) const;
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);