summaryrefslogtreecommitdiffstats
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-14 22:19:18 +0000
committerChris Lattner <sabre@nondot.org>2006-07-14 22:19:18 +0000
commit6b8408e9103328b82affbfdf3d3bca236c61f514 (patch)
tree72b4031279b1e54b1cf68de1d28a96682f0952b2 /include/llvm/Constants.h
parent79fbf7fe27f8532f5e1eabdbb5524504356ad075 (diff)
downloadexternal_llvm-6b8408e9103328b82affbfdf3d3bca236c61f514.zip
external_llvm-6b8408e9103328b82affbfdf3d3bca236c61f514.tar.gz
external_llvm-6b8408e9103328b82affbfdf3d3bca236c61f514.tar.bz2
Add another helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 7a1b493..ef06c33 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<Constant*> &Ops) const;
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);