Add a helper method. The StructType element is completely redundant in most
authorChris Lattner <sabre@nondot.org>
Mon, 12 Jul 2004 20:36:08 +0000 (20:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 Jul 2004 20:36:08 +0000 (20:36 +0000)
cases

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14777 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index fbb7a42f5dbc227f01a94c2828c1531ae0e62b45..324f50612086017e6936ccaeddba659879d35c0f 100644 (file)
@@ -402,9 +402,12 @@ protected:
   ConstantStruct(const StructType *T, const std::vector<Constant*> &Val);
 public:
   /// get() - Static factory methods - Return objects of the specified value
+  ///
   static Constant *get(const StructType *T, const std::vector<Constant*> &V);
+  static Constant *get(const std::vector<Constant*> &V);
 
   /// getType() specialization - Reduce amount of casting...
+  ///
   inline const StructType *getType() const {
     return reinterpret_cast<const StructType*>(Value::getType());
   }