diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-04-13 13:46:01 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-04-13 13:46:01 +0000 |
commit | b81e457eb02b67a9ef5fb9edc1604b177acb821d (patch) | |
tree | 3e088b09aec3aa973c422f5d397abe34abb51045 /include | |
parent | d61895a4beca5b54d01c1899c005a22261b3bcff (diff) | |
download | external_llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.zip external_llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.tar.gz external_llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Constants.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index c12b33f..62a2d9f 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); |