From 5eb09d1dedbc94589fbd0d14d74ad30ef8f3449a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jul 2004 20:36:08 +0000 Subject: Add a helper method. The StructType element is completely redundant in most cases llvm-svn: 14777 --- llvm/include/llvm/Constants.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Constants.h b/llvm/include/llvm/Constants.h index fbb7a42f5db..324f5061208 100644 --- a/llvm/include/llvm/Constants.h +++ b/llvm/include/llvm/Constants.h @@ -402,9 +402,12 @@ protected: ConstantStruct(const StructType *T, const std::vector &Val); public: /// get() - Static factory methods - Return objects of the specified value + /// static Constant *get(const StructType *T, const std::vector &V); + static Constant *get(const std::vector &V); /// getType() specialization - Reduce amount of casting... + /// inline const StructType *getType() const { return reinterpret_cast(Value::getType()); } -- cgit v1.2.3