From c78631f0e2cfd7808233176c638c7f9a50ccaff2 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14777 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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()); }