1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Add a helper method. The StructType element is completely redundant in most

cases

llvm-svn: 14777
This commit is contained in:
Chris Lattner 2004-07-12 20:36:08 +00:00
parent 3f023d6df9
commit 10686c55cc

View 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());
}