From 10686c55cc6c676138ac1c38224ac20bdce4c0c6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jul 2004 20:36:08 +0000 Subject: [PATCH] Add a helper method. The StructType element is completely redundant in most cases llvm-svn: 14777 --- include/llvm/Constants.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index fbb7a42f5db..324f5061208 100644 --- a/include/llvm/Constants.h +++ b/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()); }