mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
b370c7a41a
commit
c78631f0e2
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user