From: Chris Lattner Date: Mon, 12 Jul 2004 20:36:08 +0000 (+0000) Subject: Add a helper method. The StructType element is completely redundant in most X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c78631f0e2cfd7808233176c638c7f9a50ccaff2;p=oota-llvm.git Add a helper method. The StructType element is completely redundant in most cases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14777 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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()); }